X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FSMP.h;h=bba80f78cf2a2375b1fed3dbe1978eb36dc1a853;hb=f70052e9dd0492e2e73e96b54ae97c5ee6bf24a3;hp=89aa420adf59de4861c1ea685d81b4b3c8845ff5;hpb=2f3c5f235bd33482e1663049d3b9f3dbe57f48c6;p=ghc-hetmet.git diff --git a/includes/SMP.h b/includes/SMP.h index 89aa420..bba80f7 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\ncmpxchg %3,%1" :"=a"(o), "=m" (*(volatile unsigned int *)p) :"0" (o), "r" (n)); return o;