summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/arch/amd64/_atomic_lock.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc_r/arch/amd64/_atomic_lock.S b/lib/libc_r/arch/amd64/_atomic_lock.S
index af49aff..aaab081 100644
--- a/lib/libc_r/arch/amd64/_atomic_lock.S
+++ b/lib/libc_r/arch/amd64/_atomic_lock.S
@@ -35,8 +35,7 @@
* eax will contain the return value (zero if lock obtained).
*/
ENTRY(_atomic_lock)
- movl 4(%esp), %ecx
movl $1, %eax
- xchg %eax, (%ecx)
+ xchgq %rax, (%rdi)
ret
OpenPOWER on IntegriCloud