summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/atomic.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-03-02 20:40:25 +0000
committerian <ian@FreeBSD.org>2015-03-02 20:40:25 +0000
commit845accea495a907b47559a2ef8467933061b2ef9 (patch)
treeb10a3a31fd2ba5e002131611fac019dade261276 /sys/arm/include/atomic.h
parent4f0a7fb0b170ca7894ac9ab92853da86521c956c (diff)
downloadFreeBSD-src-845accea495a907b47559a2ef8467933061b2ef9.zip
FreeBSD-src-845accea495a907b47559a2ef8467933061b2ef9.tar.gz
Revert r279338. The casts are apparently bogus, despite the fact that
they've been working in i386 (where this change came from).
Diffstat (limited to 'sys/arm/include/atomic.h')
-rw-r--r--sys/arm/include/atomic.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h
index 54835a1..57fdf71 100644
--- a/sys/arm/include/atomic.h
+++ b/sys/arm/include/atomic.h
@@ -1103,23 +1103,13 @@ atomic_store_long(volatile u_long *dst, u_long src)
*dst = src;
}
-#define atomic_clear_ptr(p, v) \
- atomic_clear_32((volatile uint32_t *)(p), (uint32_t)(v))
-#define atomic_set_ptr(p, v) \
- atomic_set_32((volatile uint32_t *)(p), (uint32_t)(v))
-#define atomic_cmpset_ptr(p, cmpval, newval) \
- atomic_cmpset_32((volatile u_int32_t *)(p), (u_int32_t)(cmpval), \
- (u_int32_t)(newval))
-#define atomic_cmpset_rel_ptr(p, cmpval, newval) \
- atomic_cmpset_rel_32((volatile u_int32_t *)(p), (u_int32_t)(cmpval), \
- (u_int32_t)(newval))
-#define atomic_cmpset_acq_ptr(p, cmpval, newval) \
- atomic_cmpset_acq_32((volatile u_int32_t *)(p), (u_int32_t)(cmpval), \
- (u_int32_t)(newval))
-#define atomic_store_ptr(p, v) \
- atomic_store_32((volatile uint32_t *)(p), (uint32_t)(v))
-#define atomic_store_rel_ptr(p, v) \
- atomic_store_rel_32((volatile uint32_t *)(p), (uint32_t)(v))
+#define atomic_clear_ptr atomic_clear_32
+#define atomic_set_ptr atomic_set_32
+#define atomic_cmpset_ptr atomic_cmpset_32
+#define atomic_cmpset_rel_ptr atomic_cmpset_rel_32
+#define atomic_cmpset_acq_ptr atomic_cmpset_acq_32
+#define atomic_store_ptr atomic_store_32
+#define atomic_store_rel_ptr atomic_store_rel_32
#define atomic_add_int atomic_add_32
#define atomic_add_acq_int atomic_add_acq_32
OpenPOWER on IntegriCloud