On Wed, Jan 14, 2009 at 10:02:48AM -0700, Stu Bell wrote:
> > 
> > Don't quite understand the push/popped reference, but if a variable
> > is accessed in both interrupt space and "user" space it needs to be
> > protected so that its uses "atomically".
> 
> Which is why there is the <util/atomic.h> macros.  Check out:
> 
> ATOMIC_BLOCK( ATOMIC_RESTORESTATE )
> {
>    ... Mangle pointers
> }

Interesting. Don't recall those being there 3 or 4 years ago back in the
days of avr-gcc 3.3 and 3.4.

-- 
David Kelly N4HHE, dke...@hiwaay.net
========================================================================
Whom computers would destroy, they must first drive mad.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to