Commit 2f3c5f23 authored by Simon Marlow's avatar Simon Marlow
Browse files

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.
parent 83f00866
......@@ -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;
......
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