[Top][All Lists]

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

Re: [avr-gcc-list] COMPILER Frame pointer bug!!!

From: Marek Michalkiewicz
Subject: Re: [avr-gcc-list] COMPILER Frame pointer bug!!!
Date: Mon, 19 Nov 2001 10:26:44 +0100 (CET)

> I found  strange avr-gcc behaviour.

Don't panic! :)

>         in __tmp_reg__,__SREG__       ; this saves the I flag
>         cli                                                ;    <===== 
>         out __SP_H__,r29
>         out __SREG__,__tmp_reg__      ; this restores its previous state
>         out __SP_L__,r28      ; interrupt can come after this instruction

> And no 'sei' instruction in the function body!!!

That would be wrong, as the function could be called with interrupts
already disabled, and shouldn't enable them in this case.

Hope this helps,

reply via email to

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