summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-07-18 10:40:15 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-07-18 10:40:15 +0000
commit04adf5332c666d066f6829c7b47862bb37caa675 (patch)
treec2d32403115e58858461b54eef4c6c7501771eb3 /sys/arch/m88k/include
parentf67dc84fb8d096f91bbecf68bfc01eb126a1a8a3 (diff)
pass atomic_{cas,swap}_uint a volatile void * instead of a volatile
void **. the latter is really hard to cast for, and not what what solaris does. ok kettenis@
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m88k/include/atomic.h b/sys/arch/m88k/include/atomic.h
index 73e89a532fc..7a0f8d34c88 100644
--- a/sys/arch/m88k/include/atomic.h
+++ b/sys/arch/m88k/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.11 2014/07/13 08:13:07 miod Exp $ */
+/* $OpenBSD: atomic.h,v 1.12 2014/07/18 10:40:14 dlg Exp $ */
/* Public Domain */
@@ -137,12 +137,12 @@ atomic_clear_int(volatile unsigned int *uip)
((unsigned long)atomic_cas_uint((unsigned int *)p, (unsigned int)o, \
(unsigned int)n))
#define atomic_cas_ptr(p,o,n) \
- ((void *)atomic_cas_uint((void **)p, (void *)o, (void *)n))
+ ((void *)atomic_cas_uint((void *)p, (void *)o, (void *)n))
#define atomic_swap_ulong(p,o) \
((unsigned long)atomic_swap_uint((unsigned int *)p, (unsigned int)o)
#define atomic_swap_ptr(p,o) \
- ((void *)atomic_swap_uint((void **)p, (void *)o))
+ ((void *)atomic_swap_uint((void *)p, (void *)o))
static inline void
__sync_synchronize(void)