PERFORCE change 64962 for review
John Baldwin
jhb at FreeBSD.org
Fri Nov 12 10:26:03 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=64962
Change 64962 by jhb at jhb_slimer on 2004/11/12 18:25:42
Bah, fixes from Bruce for userland use of atomic ops. Also, UP
doesn't even need gcc barriers.
Affected files ...
.. //depot/projects/smpng/sys/i386/include/atomic.h#19 edit
Differences ...
==== //depot/projects/smpng/sys/i386/include/atomic.h#19 (text+ko) ====
@@ -172,7 +172,7 @@
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
-#if !defined(SMP)
+#if defined(KERNEL) && !defined(SMP)
/*
* We assume that a = b will do atomic loads and stores. However, on a
@@ -191,7 +191,6 @@
static __inline void \
atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\
{ \
- __asm __volatile("" : : : "memory"); \
*p = v; \
} \
struct __hack
More information about the p4-projects
mailing list