projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d261f13
)
Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash)
author
wolfgang.thaller@gmx.net
<unknown>
Mon, 6 Mar 2006 03:48:20 +0000
(
03:48
+0000)
committer
wolfgang.thaller@gmx.net
<unknown>
Mon, 6 Mar 2006 03:48:20 +0000
(
03:48
+0000)
ghc/includes/SMP.h
patch
|
blob
|
history
diff --git
a/ghc/includes/SMP.h
b/ghc/includes/SMP.h
index
f4c8605
..
93af9df
100644
(file)
--- 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;