Commit eeb22c33 authored by's avatar
Browse files

Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash)

parent d261f13b
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment