diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2003-06-02 22:30:59 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2003-06-02 22:30:59 +0000 |
| commit | 19816dec925c4fcb456cdcacc7908a3108155cbd (patch) | |
| tree | f024ba8e344bb61eb5b25fdb9c4e9234434da0e3 | |
| parent | 3aefe09423b8d7573ff4374120bc4d738f5897f5 (diff) | |
Notes
| -rw-r--r-- | lib/libc_r/arch/amd64/_atomic_lock.S | 3 |
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 af49aff68f03..aaab0814d8c3 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 |
