From 854f9ec4a67d903e31007a3d4bad0bdada53758a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 11 Sep 2003 18:56:41 +0000 Subject: Update. 2003-09-11 Steven Munroe * sysdeps/powerpc/powerpc64/pt-machine.h [MEMORY_BARRIER]: Use lwsync. [READ_MEMORY_BARRIER]: Define. [WRITE_MEMORY_BARRIER]: Define. --- linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linuxthreads/sysdeps') diff --git a/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h b/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h index f28e8080bb..ac3149581b 100644 --- a/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h +++ b/linuxthreads/sysdeps/powerpc/powerpc64/pt-machine.h @@ -34,7 +34,9 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval); /* For multiprocessor systems, we want to ensure all memory accesses are completed before we reset a lock. On other systems, we still need to make sure that the compiler has flushed everything to memory. */ -#define MEMORY_BARRIER() __asm__ __volatile__ ("sync" : : : "memory") +#define MEMORY_BARRIER() __asm__ __volatile__ ("lwsync" : : : "memory") +#define READ_MEMORY_BARRIER() __asm__ __volatile__ ("lwsync" : : : "memory") +#define WRITE_MEMORY_BARRIER() __asm__ __volatile__ ("eieio" : : : "memory") /* We want the OS to assign stack addresses. */ #define FLOATING_STACKS 1 -- cgit v1.2.3