In pmap_change_wiring(), use the right argument for pmap_modify_pv().

It only worked because the only consumer calls pmap_change_wiring() to remove
the wiring.
This commit is contained in:
Olivier Houchard 2011-05-13 15:54:12 +00:00
parent 359295cd2a
commit a44f91a9ec

View File

@ -3646,7 +3646,7 @@ pmap_change_wiring(pmap_t pmap, vm_offset_t va, boolean_t wired)
pte = *ptep;
pg = PHYS_TO_VM_PAGE(l2pte_pa(pte));
if (pg)
pmap_modify_pv(pg, pmap, va, PVF_WIRED, wired);
pmap_modify_pv(pg, pmap, va, PVF_WIRED, wired ? PVF_WIRED : 0);
vm_page_unlock_queues();
PMAP_UNLOCK(pmap);
}