1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221844

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);
}