Date: Fri, 12 Nov 2004 18:26:02 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 64962 for review Message-ID: <200411121826.iACIQ2dE021907@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=64962 Change 64962 by jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411121826.iACIQ2dE021907>