PERFORCE change 131294 for review

John Birrell jb at FreeBSD.org
Wed Dec 19 22:50:32 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=131294

Change 131294 by jb at jb_freebsd1 on 2007/12/20 06:49:53

	More compatibility cruft.

Affected files ...

.. //depot/projects/dtrace/src/sys/compat/opensolaris/sys/atomic.h#6 edit

Differences ...

==== //depot/projects/dtrace/src/sys/compat/opensolaris/sys/atomic.h#6 (text+ko) ====

@@ -32,7 +32,9 @@
 #include <sys/types.h>
 #include <machine/atomic.h>
 
-#define	casptr	atomic_cmpset_ptr
+#define	casptr(_a, _b, _c)	\
+	atomic_cmpset_ptr((volatile uintptr_t *)(_a), (uintptr_t)(_b), (uintptr_t) (_c))
+#define cas32	atomic_cmpset_32
 
 #ifndef __LP64__
 extern void atomic_add_64(volatile uint64_t *target, int64_t delta);


More information about the p4-projects mailing list