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:
83f0086
)
use "lock cmpxchg" instead of "lock/cmpxchg"
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 17 Nov 2006 11:44:29 +0000
(11:44 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 17 Nov 2006 11:44:29 +0000
(11:44 +0000)
I'm not sure where the latter version came from, but it apparently
doesn't generate a legal instruction on Solaris.
includes/SMP.h
patch
|
blob
|
history
diff --git
a/includes/SMP.h
b/includes/SMP.h
index
b410c6e
..
89aa420
100644
(file)
--- 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 cmpxchg %3,%1"
:"=a"(o), "=m" (*(volatile unsigned int *)p)
:"0" (o), "r" (n));
return o;