avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Should cli() imply a memory barrier?


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Should cli() imply a memory barrier?
Date: Tue, 8 Jun 2010 21:27:10 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Paulo Marques wrote:

> One thing we could do for the programmers that want to use the "raw"
> cli version and know what they are doing is to keep a "__cli" or
> "__raw_cli" version (or some other name) that just emits a single
> "cli" instruction.

I guess it's simple enough then to just write

asm volatile("cli");

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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