summaryrefslogtreecommitdiff
path: root/includes/SMP.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-11-17 11:44:29 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-11-17 11:44:29 +0000
commit2f3c5f235bd33482e1663049d3b9f3dbe57f48c6 (patch)
tree03bec1cdffce884c46e87e5407db141a79f38074 /includes/SMP.h
parent83f00866d4dbf458deefd669621fc86bc2c5477c (diff)
downloadhaskell-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.h2
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;