]> CyberLeo.Net >> Repos - FreeBSD/releng/8.2.git/commit
MFC: r216891
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Jan 2011 13:40:35 +0000 (13:40 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Jan 2011 13:40:35 +0000 (13:40 +0000)
commit951fc6b4661005b8a9955430878078118f2bc2bc
tree0ca194e46cdb3821ac8ce67cf14ae6f70f233dab
parent15442a70b05bdc1acb4e133127b698e8ef495a0a
MFC: r216891

Extend the section in which interrupts are disabled in the TLB demap
functions, otherwise if we get preempted after checking whether a certain
pmap is active on the current CPU but before disabling interrupts we might
operate on an outdated state as the pmap might have been deactivated in
the meantime. As the same issue may arises when the TLB demap function is
interrupted by a TLB demap IPI, just entering a critical section before
the check isn't sufficient so we have to fully disable interrupts instead.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/8.2@217006 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sparc64/sparc64/tlb.c