avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] About context saving in Vectors


From: David Kelly
Subject: Re: [avr-gcc-list] About context saving in Vectors
Date: Wed, 14 Jan 2009 12:13:37 -0600
User-agent: Mutt/1.4.2.3i

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, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]