summaryrefslogtreecommitdiff
path: root/includes/SMP.h
diff options
context:
space:
mode:
authorBen.Lippmeier@anu.edu.au <unknown>2009-02-13 00:49:10 +0000
committerBen.Lippmeier@anu.edu.au <unknown>2009-02-13 00:49:10 +0000
commitc83d2d16d72825ea5ef9a1b3c7096fc9e19491b7 (patch)
treed2d97ae954226a11fcd070d23f42b8d3d5b157bd /includes/SMP.h
parente3029b1d193614f53a4d132637269f568deb0d46 (diff)
downloadhaskell-c83d2d16d72825ea5ef9a1b3c7096fc9e19491b7.tar.gz
NCG: Use sync instead of msync for a memory barrier for powerpc
Darwin 9.6.0 + GCC 4.0.1 doesn't understand "msync". I think "sync" means the same thing.
Diffstat (limited to 'includes/SMP.h')
-rw-r--r--includes/SMP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SMP.h b/includes/SMP.h
index c851054cd9..223f1581a3 100644
--- a/includes/SMP.h
+++ b/includes/SMP.h
@@ -195,7 +195,7 @@ store_load_barrier(void) {
#elif x86_64_HOST_ARCH
__asm__ __volatile__ ("lock; addq $0,0(%%rsp)" : : : "memory");
#elif powerpc_HOST_ARCH
- __asm__ __volatile__ ("msync" : : : "memory");
+ __asm__ __volatile__ ("sync" : : : "memory");
#elif sparc_HOST_ARCH
/* Sparc in TSO mode does not require write/write barriers. */
__asm__ __volatile__ ("membar" : : : "memory");