Correct an error in pmap_pv_reclaim(). It can legitimately encounter

wired mappings.  If it does, it should just skip them.
This commit is contained in:
alc 2012-10-14 03:40:08 +00:00
parent af2d834e29
commit 5b3318cf9e

View File

@ -1434,8 +1434,8 @@ pmap_pv_reclaim(pmap_t locked_pmap)
("pmap_pv_reclaim: pde"));
pte = pmap_pde_to_pte(pde, va);
oldpte = *pte;
KASSERT(!pte_test(&oldpte, PTE_W),
("wired pte for unwired page"));
if (pte_test(&oldpte, PTE_W))
continue;
if (is_kernel_pmap(pmap))
*pte = PTE_G;
else