summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/include/lock.h')
-rw-r--r--sys/arch/amd64/include/lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/lock.h b/sys/arch/amd64/include/lock.h
index ec38788f12c..2f63ae4b833 100644
--- a/sys/arch/amd64/include/lock.h
+++ b/sys/arch/amd64/include/lock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock.h,v 1.7 2013/05/21 20:05:30 tedu Exp $ */
+/* $OpenBSD: lock.h,v 1.8 2014/03/27 10:24:40 dlg Exp $ */
/* $NetBSD: lock.h,v 1.1.2.2 2000/05/03 14:40:55 sommerfeld Exp $ */
/*-
@@ -50,6 +50,6 @@
#include <machine/atomic.h>
-#define rw_cas(p, o, n) (x86_atomic_cas_ul(p, o, n) != o)
+#define rw_cas(p, o, n) (atomic_cas_ulong(p, o, n) != o)
#endif /* _MACHINE_LOCK_H_ */