mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Hua Zhong" <hzhong@cisco.com>
To: <linux-kernel@vger.kernel.org>
Cc: <paulus@samba.org>
Subject: Memory barrier on ppc and general
Date: Fri, 10 Sep 2004 17:47:25 -0700	[thread overview]
Message-ID: <004201c49798$e7ff06d0$7b3a47ab@amer.cisco.com> (raw)

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


                 reply	other threads:[~2004-09-11  0:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004201c49798$e7ff06d0$7b3a47ab@amer.cisco.com' \
    --to=hzhong@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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