From: wolfgang.thaller@gmx.net Date: Mon, 6 Mar 2006 03:48:20 +0000 (+0000) Subject: Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=eeb22c33a15bc8b2b2c71739b15b0e39181dbbf9 Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash) --- diff --git a/ghc/includes/SMP.h b/ghc/includes/SMP.h index f4c8605..93af9df 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;