]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Changed the implementation of the primitives to guarantee atomicity
authorAlan Cox <alc@FreeBSD.org>
Tue, 13 Jul 1999 03:32:17 +0000 (03:32 +0000)
committerAlan Cox <alc@FreeBSD.org>
Tue, 13 Jul 1999 03:32:17 +0000 (03:32 +0000)
commite58bb1c45349c6ebb1ffe234f3bc42a952381d21
treeffa71a2d07f76370f8b0780a195a2f98163c0a26
parent5bf6ab83691ec9bdd8ba88e71cdbff01f891485e
Changed the implementation of the primitives to guarantee atomicity
with respect to interrupts on UP systems.  (The upgrade from gcc 2.7.x
to egcs 1.1.2 produced at least one non-atomic code sequence in
swap_pager_getpages.)

In addition, the primitives are now SMP-safe, but only on SMPs.  (For
portability between SMPs and UPs, modules are compiled with the SMP-safe
versions.)

Submitted by: dillon and myself
Reviewed by: bde
sys/amd64/include/atomic.h
sys/i386/include/atomic.h