]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add in required instruction serialization prior to releasing the
authordillon <dillon@FreeBSD.org>
Tue, 23 Nov 1999 18:46:09 +0000 (18:46 +0000)
committerdillon <dillon@FreeBSD.org>
Tue, 23 Nov 1999 18:46:09 +0000 (18:46 +0000)
commitfca91f81f00e6ab7eb4b107c4ce71ad232a3f5f2
treecb9584d6a210b110bdcf06c09ef1aa30dd6e3340
parentd3d45d6d95a326f78f954f8be3a6c71fa4b44110
Add in required instruction serialization prior to releasing the
    MP lock for the last time.  The use of a locked instruction to
    cpu-private memory is 3x faster then CPUID and 3x faster then the
    use of a locked instruction to shared memory (the lock itself).

    Instruction serialization is required to ensure that any pending
    memory ops are properly flushed prior to the release of the lock,
    due to out-of-order instruction execution by the cpu.
sys/i386/i386/mplock.s