[PATCH] MEMORY_BARRIER default

David Mosberger davidm@napali.hpl.hp.com
Mon Mar 25 09:41:00 GMT 2002


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



More information about the Libc-hacker mailing list