[Top][All Lists]

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

Re: [avr-gcc-list] race condition in sleep_mode()

From: Andreas Kaiser
Subject: Re: [avr-gcc-list] race condition in sleep_mode()
Date: Mon, 19 Dec 2005 00:18:04 +0100

On Mon, 19 Dec 2005 09:07:10 +1000, you wrote:

> Another common method is to set SE bit *after* 'sleep' instruction.
> (The important interrupt must clean SE). 'cli' is not needed in this case.

But it makes save-sreg/cli/do-something/restore-sreg brackets
necessary around each manipulation of the MCUCRs. Also it spreads
related code all over the world.

Gruss, Andreas

reply via email to

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