From: Simon Marlow Date: Fri, 17 Nov 2006 11:44:29 +0000 (+0000) Subject: use "lock cmpxchg" instead of "lock/cmpxchg" X-Git-Tag: 2006-12-16~83 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2f3c5f235bd33482e1663049d3b9f3dbe57f48c6;p=ghc-hetmet.git 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. --- diff --git a/includes/SMP.h b/includes/SMP.h index b410c6e..89aa420 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;