mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Memory barrier on ppc and general
@ 2004-09-11  0:47 Hua Zhong
  0 siblings, 0 replies; only message in thread
From: Hua Zhong @ 2004-09-11  0:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: paulus

Hi list:

I have a question about memory barrier.

1. first, this is a ppc-specific question. From the source of Linux ppc, I
see mb() and rmb() are defined as "sync", while "wmb()" is defined as
"eieio", but from the manual I see why eieio can't be used for rmb() and
mb() also. Could someone enlighten me?

2. second, does the memory barrier also work for for memory-mapped IO
registers? For example, a wmb() guarantees two stores to memory are
in-order, but say the second store is actually a hardware register. Would
the barrier still work?

Thanks for your answer.

Hua


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-11  0:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-11  0:47 Memory barrier on ppc and general Hua Zhong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome