summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-09 15:31:29 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-09 15:31:29 +0000
commitbef5c1203e8b821e3eeb308fe0fec1cd4a4b82aa (patch)
treebb24a5db88cb91fcf4803d90a1e26c911df635ac /sys/uvm
parent0a2e27bb7e82e11d8f2582564af9ba749623642e (diff)
More sync to NetBSD.
- Change pmap_change_wiring to pmap_unwire because it's only called that way. - Remove pmap_pageable because it's seldom implemented and when it is, it's either almost useless or incorrect. The same information is already passed to the pmap anyway by pmap_enter and pmap_unwire.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_fault.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c
index 50f29232244..12b31c1d4d2 100644
--- a/sys/uvm/uvm_fault.c
+++ b/sys/uvm/uvm_fault.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_fault.c,v 1.11 2001/05/07 16:08:40 art Exp $ */
-/* $NetBSD: uvm_fault.c,v 1.37 1999/06/16 23:02:40 thorpej Exp $ */
+/* $OpenBSD: uvm_fault.c,v 1.12 2001/05/09 15:31:23 art Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.39 1999/06/17 19:23:21 thorpej Exp $ */
/*
*
@@ -1725,17 +1725,8 @@ uvm_fault_wire(map, start, end, access_type)
pmap = vm_map_pmap(map);
-#ifndef PMAP_NEW
/*
- * call pmap pageable: this tells the pmap layer to lock down these
- * page tables.
- */
-
- pmap_pageable(pmap, start, end, FALSE);
-#endif
-
- /*
- * now fault it in page at a time. if the fault fails then we have
+ * fault it in page at a time. if the fault fails then we have
* to undo what we have done.
*/
@@ -1838,7 +1829,7 @@ uvm_fault_unwire_locked(map, start, end)
* if the entry is no longer wired, tell the pmap.
*/
if (VM_MAPENT_ISWIRED(entry) == 0)
- pmap_change_wiring(pmap, va, FALSE);
+ pmap_unwire(pmap, va);
pg = PHYS_TO_VM_PAGE(pa);
if (pg)
@@ -1846,13 +1837,4 @@ uvm_fault_unwire_locked(map, start, end)
}
uvm_unlock_pageq();
-
-#ifndef PMAP_NEW
- /*
- * now we call pmap_pageable to let the pmap know that the page tables
- * in this space no longer need to be wired.
- */
-
- pmap_pageable(pmap, start, end, TRUE);
-#endif
}