diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-01-18 16:24:22 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-01-18 16:24:22 -0800 |
commit | 74389e559a91db698364664797e3819302a15836 (patch) | |
tree | 493689d19012da3e4c5e127663d0b195d520ca5a /lib/thread | |
parent | 326816bb8a61f0b0b5997d2271a3369daed68cec (diff) | |
download | mc-74389e559a91db698364664797e3819302a15836.tar.gz |
Add OSX style symbols to atomic-impl+x64.s
OSX wants '_'-prefixed functions.
Diffstat (limited to 'lib/thread')
-rw-r--r-- | lib/thread/atomic-impl+x64.s | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/thread/atomic-impl+x64.s b/lib/thread/atomic-impl+x64.s index 43986bb..82dbd78 100644 --- a/lib/thread/atomic-impl+x64.s +++ b/lib/thread/atomic-impl+x64.s @@ -1,60 +1,90 @@ .globl thread$xget32 +.globl _thread$xget32 thread$xget32: +_thread$xget32: movl (%rdi), %eax ret .globl thread$xget64 .globl thread$xgetp +.globl _thread$xget64 +.globl _thread$xgetp thread$xget64: thread$xgetp: +_thread$xget64: +_thread$xgetp: movq (%rdi), %rax ret .globl thread$xset32 +.globl _thread$xset32 thread$xset32: +_thread$xset32: movl %esi, (%rdi) ret .globl thread$xset64 .globl thread$xsetp +.globl _thread$xset64 +.globl _thread$xsetp thread$xset64: thread$xsetp: +_thread$xset64: +_thread$xsetp: movq %rsi, (%rdi) ret .globl thread$xadd32 +.globl _thread$xadd32 thread$xadd32: +_thread$xadd32: lock xaddl %esi, (%rdi) movl %esi,%eax ret .globl thread$xadd64 .globl thread$xaddp +.globl _thread$xadd64 +.globl _thread$xaddp thread$xadd64: thread$xaddp: +_thread$xadd64: +_thread$xaddp: lock xaddq %rsi, (%rdi) movq %rsi,%rax ret .globl thread$xcas32 +.globl _thread$xcas32 thread$xcas32: +_thread$xcas32: movl %esi, %eax lock cmpxchgl %edx, (%rdi) ret .globl thread$xcas64 .globl thread$xcasp +.globl _thread$xcas64 +.globl _thread$xcasp thread$xcas64: thread$xcasp: +_thread$xcas64: +_thread$xcasp: movq %rsi, %rax lock cmpxchgq %rdx, (%rdi) ret .globl thread$xchg32 +.globl _thread$xchg32 thread$xchg32: +_thread$xchg32: movl %esi, %eax lock xchgl (%rdi), %eax ret .globl thread$xchg64 .globl thread$xchgp +.globl _thread$xchg64 +.globl _thread$xchgp thread$xchg64: thread$xchgp: +_thread$xchg64: +_thread$xchgp: movq %rsi, %rax lock xchgq (%rdi), %rax ret |