[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] patch to fix unbalanced 'cli' that causes interrupts
Re: [avr-gcc-list] patch to fix unbalanced 'cli' that causes interrupts to always be disabled
Sun, 1 Dec 2002 17:03:26 -0500 (EST)
> The problem is that a signal function could enable interrupts in its
> body (after servicing the interrupt source, so that the interrupt
> condition goes away and we won't be interrupted recursively), so the
> interrupt flag in epilogue is unknown. The signal/interrupt epilogue
> ends with "reti" which enables interrupts again.
Sorry, I completely forgot about the interrupts that are cleared upon
reading a register. This makes complete sense.
Sorry about the confusion!
avr-gcc-list at http://avr1.org