Date: Mon, 12 Oct 2009 16:05:31 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/include atomic.h src/sys/i386/include atomic.h Message-ID: <200910121605.n9CG5nwA042460@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
attilio 2009-10-12 16:05:31 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/amd64/include atomic.h sys/i386/include atomic.h Log: SVN rev 197985 on 2009-10-12 16:05:31Z by attilio MFC r197803, r197824, r197910: Per their definition, atomic instructions used in conjuction with memory barriers should also ensure that the compiler doesn't reorder paths where they are used. GCC, however, does that aggressively, even in presence of volatile operands. The most reliable way GCC offers for avoid instructions reordering is clobbering "memory". Not all our memory barriers, right now, clobber memory for GCC-like compilers. Fix these cases. Approved by: re (kib) Revision Changes Path 1.46.2.2 +60 -44 src/sys/amd64/include/atomic.h 1.51.2.2 +57 -41 src/sys/i386/include/atomic.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910121605.n9CG5nwA042460>