diff options
author | 2001-05-09 15:31:22 +0000 | |
---|---|---|
committer | 2001-05-09 15:31:22 +0000 | |
commit | ebb3c897558244968eada4aa839086cf3dd98a28 (patch) | |
tree | d077192e40c9b5055f9f9c84948900117064e01f /sys/uvm/uvm_fault.c | |
parent | correct signal handling for ping6 -f <nonexisting destination>. (diff) | |
download | wireguard-openbsd-ebb3c897558244968eada4aa839086cf3dd98a28.tar.xz wireguard-openbsd-ebb3c897558244968eada4aa839086cf3dd98a28.zip |
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/uvm_fault.c')
-rw-r--r-- | sys/uvm/uvm_fault.c | 26 |
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 } |