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

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

Re: [avr-libc-dev] [bug #14616] definition of sei() in interrupts.h is f


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [bug #14616] definition of sei() in interrupts.h is faulty
Date: Tue, 27 Sep 2005 06:56:02 +0200
User-agent: Mutt/1.4.2.1i

As Russell Shaw wrote:

> Linux code has rmb() and wmb() for "read memory barrier" and "write
> memory barrier", to solve that reordering problem. Something might
> be learned from finding how those macros are defined.

They end up in a spaghetti of header files, but if my brain can
trace that right, they simply end up in an

__asm__ volatile(::"memory")

unless the underlying CPU offers a better instruction to implement
this.

-- 
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]