Date: Fri, 5 Dec 2008 21:17:54 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/i386/include atomic.h Message-ID: <200812052118.mB5LICah046240@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2008-12-05 21:17:54 UTC
FreeBSD src repository
Modified files:
sys/i386/include atomic.h
Log:
SVN rev 185651 on 2008-12-05 21:17:54Z by kib
Unconditionally use locked addition of zero to tip of the stack for
memory barriers on i386. It works as a serialization instruction on
all IA32 CPUs.
Alternative solution of using {s,l,}fence requires run-time checking
of the presense of the corresponding SSE or SSE2 extensions, and
possible boot-time patching of the kernel text.
Suggested by: many
Revision Changes Path
1.50 +3 -14 src/sys/i386/include/atomic.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812052118.mB5LICah046240>
