summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-03 19:06:12 +0000
committersam <sam@FreeBSD.org>2009-02-03 19:06:12 +0000
commitb0deb12c847b51986cd4208470c4ff0279c49ffd (patch)
tree3182510f6b90079a81b6f57b9d7f65cadf67e740
parent39a31634003535afcd7433738b517b4e8d86b801 (diff)
downloadFreeBSD-src-b0deb12c847b51986cd4208470c4ff0279c49ffd.zip
FreeBSD-src-b0deb12c847b51986cd4208470c4ff0279c49ffd.tar.gz
force atomic_cmpset_ptr types to match atomic_cmpset_32;
this matches what powerpc does Submitted by: stass MFC after: 2 weeks
-rw-r--r--sys/arm/include/atomic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h
index 72e198d..71e31c3 100644
--- a/sys/arm/include/atomic.h
+++ b/sys/arm/include/atomic.h
@@ -344,7 +344,8 @@ atomic_readandclear_32(volatile u_int32_t *p)
#define atomic_clear_ptr atomic_clear_32
#define atomic_set_ptr atomic_set_32
-#define atomic_cmpset_ptr atomic_cmpset_32
+#define atomic_cmpset_ptr(dst, old, new) \
+ atomic_cmpset_32((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
#define atomic_cmpset_rel_ptr atomic_cmpset_ptr
#define atomic_cmpset_acq_ptr atomic_cmpset_ptr
#define atomic_store_ptr atomic_store_32
OpenPOWER on IntegriCloud