[linux-fbdev] Re: readl() and friends and eieio on PPC

Paul Mackerras paulus at cs.anu.edu.au
Mon Aug 16 09:16:47 EST 1999


Jes Sorensen <Jes.Sorensen at cern.ch> wrote:

> Defininf a C function with the name of a PPC specific assembler
> function is pretty stupid. To the best of my knowledge wmb() is the
> generic name for the thing you are looking for.

Not exactly, in fact iobarrier() is probably better.

The eieio instruction has two separate effects:

1. as a write barrier for writes to cacheable memory (hence wmb)

2. as a read/write barrier for reads and writes to non-cacheable
   memory (hence iobarrier)

Paul.

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]





More information about the Linuxppc-dev mailing list