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

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

Re: [avr-gcc-list] generic queue library for AVR GCC?


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] generic queue library for AVR GCC?
Date: Mon, 15 Nov 2004 16:15:53 -0800 (PST)

On Mon, 15 Nov 2004, Bruce D. Lightner wrote:

> Theodore A. Roth wrote:
>
> >>My way also preserves the original state of the interrupt flag,
> >>which may be essential, depending upon the circumstance.
> >
> > It's not obvious to me that Geoffrey's method does not preserve the
> > state of the I flag. In both your code and his the SREG ends up on the
> > stack during a context switch or interrupt (implicitly with your code
> > and explicitly with Geoffrey's).
> >
> > Can someone please explain how the state the I flag is not preserved?
>
> Sorry to mislead you.  It *is* preserved.  Let me re-phrase...
>
> *Just like Geoffrey's method*, my way also preserves the original
> state of the interrupt flag, which may be essential, depending
> upon the circumstance.

Thanks for the clarification. I thought I was going nuts. ;-)

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden


reply via email to

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