From 2f3c5f235bd33482e1663049d3b9f3dbe57f48c6 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 17 Nov 2006 11:44:29 +0000 Subject: [PATCH] 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. --- includes/SMP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4