Fix _atomic_cas_64. Noted by bouyer@.

This commit is contained in:
ad 2007-12-10 14:13:12 +00:00
parent 9ef60ea019
commit 9e9c09c30a

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic.S,v 1.6 2007/12/09 17:33:56 ad Exp $ */
/* $NetBSD: atomic.S,v 1.7 2007/12/10 14:13:12 ad Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -210,7 +210,7 @@ NENTRY(_atomic_swap_64)
NENTRY(_atomic_cas_64)
movq %rsi, %rax
LOCK(24)
cmpxchgl %edx, (%rdi)
cmpxchgq %rdx, (%rdi)
/* %eax now contains the old value */
ret