svn commit: r188085 - head/sys/arm/include
Sam Leffler
sam at FreeBSD.org
Tue Feb 3 11:06:13 PST 2009
Author: sam
Date: Tue Feb 3 19:06:12 2009
New Revision: 188085
URL: http://svn.freebsd.org/changeset/base/188085
Log:
force atomic_cmpset_ptr types to match atomic_cmpset_32;
this matches what powerpc does
Submitted by: stass
MFC after: 2 weeks
Modified:
head/sys/arm/include/atomic.h
Modified: head/sys/arm/include/atomic.h
==============================================================================
--- head/sys/arm/include/atomic.h Tue Feb 3 19:00:56 2009 (r188084)
+++ head/sys/arm/include/atomic.h Tue Feb 3 19:06:12 2009 (r188085)
@@ -344,7 +344,8 @@ atomic_readandclear_32(volatile u_int32_
#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
More information about the svn-src-all
mailing list