Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
eeb22c33
Commit
eeb22c33
authored
Mar 06, 2006
by
wolfgang.thaller@gmx.net
Browse files
Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash)
parent
d261f13b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/SMP.h
View file @
eeb22c33
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment