diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-11-17 11:44:29 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-11-17 11:44:29 +0000 |
commit | 2f3c5f235bd33482e1663049d3b9f3dbe57f48c6 (patch) | |
tree | 03bec1cdffce884c46e87e5407db141a79f38074 /includes/SMP.h | |
parent | 83f00866d4dbf458deefd669621fc86bc2c5477c (diff) | |
download | haskell-2f3c5f235bd33482e1663049d3b9f3dbe57f48c6.tar.gz |
use "lock cmpxchg" instead of "lock/cmpxchg"
I'm not sure where the latter version came from, but it apparently
doesn't generate a legal instruction on Solaris.
Diffstat (limited to 'includes/SMP.h')
-rw-r--r-- | includes/SMP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SMP.h b/includes/SMP.h index b410c6eb47..89aa420adf 100644 --- a/includes/SMP.h +++ b/includes/SMP.h @@ -103,7 +103,7 @@ cas(StgVolatilePtr p, StgWord o, StgWord n) { #if i386_HOST_ARCH || x86_64_HOST_ARCH __asm__ __volatile__ ( - "lock/cmpxchg %3,%1" + "lock cmpxchg %3,%1" :"=a"(o), "=m" (*(volatile unsigned int *)p) :"0" (o), "r" (n)); return o; |