svn commit: r188026 - projects/cambria/sys/arm/include

Sam Leffler sam at FreeBSD.org
Mon Feb 2 13:01:23 PST 2009


Author: sam
Date: Mon Feb  2 21:01:20 2009
New Revision: 188026
URL: http://svn.freebsd.org/changeset/base/188026

Log:
  force atomic_cmpset_ptr types to match atomic_cmpset_32;
  this matches what powerpc does
  
  Submitted by:	stass

Modified:
  projects/cambria/sys/arm/include/atomic.h

Modified: projects/cambria/sys/arm/include/atomic.h
==============================================================================
--- projects/cambria/sys/arm/include/atomic.h	Mon Feb  2 20:51:26 2009	(r188025)
+++ projects/cambria/sys/arm/include/atomic.h	Mon Feb  2 21:01:20 2009	(r188026)
@@ -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-projects mailing list