This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] MEMORY_BARRIER default


>>>>> On Fri, 22 Mar 2002 09:27:54 +0100, Jakub Jelinek <jakub@redhat.com> said:

  Jakub> On Thu, Mar 21, 2002 at 12:35:04PM -0800, Ulrich Drepper
  Jakub> wrote:
  >> On Thu, 2002-03-21 at 11:46, Jakub Jelinek wrote:
  >>
  >> > Shouldn't sysdeps/ia64/pt-machine.h instead define a >
  >> MEMORY_BARRIER (to something like: > __asm__ __volatile__("" : :
  >> : "memory"); > )?
  >>
  >> This looks more correct.  Though this should probably be the
  >> default for all platforms which don't define specific BARRIER
  >> macros.

It seems to me that on ia64, MEMORY_BARRIER should expand into:

	asm volatile ("mf" ::: "memory")

or am I missing something?

	--david


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]