From 19816dec925c4fcb456cdcacc7908a3108155cbd Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 2 Jun 2003 22:30:59 +0000 Subject: [PATCH] Update for amd64 after repocopy from i386/ --- lib/libc_r/arch/amd64/_atomic_lock.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libc_r/arch/amd64/_atomic_lock.S b/lib/libc_r/arch/amd64/_atomic_lock.S index af49aff68f0..aaab0814d8c 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