[Tinyos Core WG] TOSThreads TEP

John Regehr regehr at cs.utah.edu
Tue May 20 19:49:16 PDT 2008


>> 2. Epilogue requirement
> 
> I agree that this is pretty risky to not have it at the bottom of each
> handler.  I'm sure there is a way to streamline the cost here as John
> suggests, but right now (on the msp430) it takes a couple hundered
> cycles.....

I think a standard trick is to add a "reschedule requested" flag.  Then 
the fast path for your epilogue is to observe that this flag is zero and 
just return from interrupt.

John


More information about the Tinyos-2.0wg mailing list