aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2011-05-13 15:54:12 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2011-05-13 15:54:12 +0000
commita44f91a9ecd217dedf3594083c059d61c4b5e384 (patch)
treea8ec6babe56d490e9b4ad3d981b4561c95928e6c
parent359295cd2ae2ac2ef489224cbb34e52e5ae29936 (diff)
downloadsrc-a44f91a9ecd217dedf3594083c059d61c4b5e384.tar.gz
src-a44f91a9ecd217dedf3594083c059d61c4b5e384.zip
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.
Notes
Notes: svn path=/head/; revision=221844
-rw-r--r--sys/arm/arm/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c
index f33a692e7302..087a744b349f 100644
--- a/sys/arm/arm/pmap.c
+++ b/sys/arm/arm/pmap.c
@@ -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);
}