summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfgang.thaller@gmx.net <unknown>2006-03-06 03:48:20 +0000
committerwolfgang.thaller@gmx.net <unknown>2006-03-06 03:48:20 +0000
commiteeb22c33a15bc8b2b2c71739b15b0e39181dbbf9 (patch)
tree497d86c26f65d5eb62e41e9f59555f4166bfd9f7
parentd261f13b6680c1926430a383b472853729440e59 (diff)
downloadhaskell-eeb22c33a15bc8b2b2c71739b15b0e39181dbbf9.tar.gz
Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash)
-rw-r--r--ghc/includes/SMP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/includes/SMP.h b/ghc/includes/SMP.h
index f4c8605dba..93af9dfa9f 100644
--- a/ghc/includes/SMP.h
+++ b/ghc/includes/SMP.h
@@ -63,7 +63,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;