Date: Tue, 6 Oct 2009 23:48:28 +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: <200910062348.n96NmgkI057830@repoman.freebsd.org>
index | next in thread | raw e-mail
attilio 2009-10-06 23:48:28 UTC
FreeBSD src repository
Modified files:
sys/amd64/include atomic.h
sys/i386/include atomic.h
Log:
SVN rev 197824 on 2009-10-06 23:48:28Z by attilio
- All the functions in atomic.h needs to be in "physical" form (like
not defined through macros or similar) in order to be later compiled in
the kernel and offer this way the support for modules (and
compatibility among the UP case and SMP case).
Fix this for the newly introduced atomic_cmpset_barr_* cases by defining
and specifying a template. Note that the new DEFINE_CMPSET_GEN()
template save more typing on amd64 than the current code. [1]
- Fix the style for memory barriers on amd64.
[1] Reported by: Paul B. Mahol <onemda at gmail dot com>
Revision Changes Path
1.48 +29 -46 src/sys/amd64/include/atomic.h
1.53 +50 -45 src/sys/i386/include/atomic.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910062348.n96NmgkI057830>
