use "lock cmpxchg" instead of "lock/cmpxchg"
authorSimon Marlow <simonmar@microsoft.com>
Fri, 17 Nov 2006 11:44:29 +0000 (11:44 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 17 Nov 2006 11:44:29 +0000 (11:44 +0000)
I'm not sure where the latter version came from, but it apparently
doesn't generate a legal instruction on Solaris.

includes/SMP.h

index b410c6e..89aa420 100644 (file)
@@ -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;