]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r216891
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Jan 2011 11:29:07 +0000 (11:29 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Jan 2011 11:29:07 +0000 (11:29 +0000)
commit0ceed369a1a3f2942a1f86417b032be5ab538f8b
tree83e62654e3dbab6c73dbc83be1c008535508f9d1
parentaff7e95a8de4bf237ab45455e5e1a8c8f296e4ae
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sparc64/sparc64/tlb.c