summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2011-07-09 01:49:17 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2011-07-09 01:49:17 +0000
commit0e24d57589d795d2810330512b1a8fdbb1fa3326 (patch)
tree534560b81883fdcd83b8c60ab0f1b46f3c6dcb31 /sys/arch/i386/include
parent0b8204a2db961a2245f156cae3343e695aaa9a42 (diff)
Add an atomic compare and exchange operation dealing with addresses
from userland for i386. Okay art@, assembly okay mlarkin@.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/atomic.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/include/atomic.h b/sys/arch/i386/include/atomic.h
index baa720d3e3c..fc5408cb968 100644
--- a/sys/arch/i386/include/atomic.h
+++ b/sys/arch/i386/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.8 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: atomic.h,v 1.9 2011/07/09 01:49:16 pirofti Exp $ */
/* $NetBSD: atomic.h,v 1.1.2.2 2000/02/21 18:54:07 sommerfeld Exp $ */
/*-
@@ -99,6 +99,9 @@ i486_atomic_cas_int(volatile u_int *ptr, u_int expect, u_int set)
return (res);
}
+int ucas_32(volatile int32_t *, int32_t, int32_t);
+#define atomic_ucas_32 ucas_32
+
#define atomic_setbits_int i386_atomic_setbits_l
#define atomic_clearbits_int i386_atomic_clearbits_l