[Tinyos-help] _nesc_atomic_start function
cire831 at gmail.com
Wed Nov 10 15:07:49 PST 2010
It is support code that helps to implement an atomic block. The other
piece is _nesc_atomic_end
When you do
The nesc front end inserts an _nesc_atomic_start at the start and an
_nesc_atonic_end at the end of the block.
What these routines do is in practice disable interrupts and then reenable
them on the way out. It keeps track of whether or not
interrupts are enabled on entry and only reenables if interrupts where on on
does that help?
On Wed, Nov 10, 2010 at 9:49 AM, Nived <nivedks at gmail.com> wrote:
> I was going through the intermediate c file generated from nesc
> compilation. i came across this function _nesc_atomic_start which executes a
> bunch of assembly instructions. Can anyone help me understand what this
> function may be doing ?
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
Eric B. Decker
Senior (over 50 :-) Researcher
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tinyos-help