Commit ebafc217 authored by Simon Marlow's avatar Simon Marlow
Browse files

cas(): modify assembly syntax to make it work everywhere (hopefully)

parent 2f3c5f23
......@@ -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\ncmpxchg %3,%1"
:"=a"(o), "=m" (*(volatile unsigned int *)p)
:"0" (o), "r" (n));
return o;
Markdown is supported
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