summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_fault.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-02-23 06:19:33 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-02-23 06:19:33 +0000
commitde2067d3774285101b5dfee0c1a30dd1e1f4225e (patch)
tree3c3235ce3a5961078f106a64788c34e0f654d8a3 /sys/uvm/uvm_fault.c
parent368d580ada242c6c62b6d5bdb01046d5621eef12 (diff)
sync of pmap_update() calls with NetBSD. pmap_update is defined away on
all architectures but arm, where it is needed.
Diffstat (limited to 'sys/uvm/uvm_fault.c')
-rw-r--r--sys/uvm/uvm_fault.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c
index 5a58cc44923..12cfc54cda9 100644
--- a/sys/uvm/uvm_fault.c
+++ b/sys/uvm/uvm_fault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_fault.c,v 1.31 2002/03/14 01:27:18 millert Exp $ */
+/* $OpenBSD: uvm_fault.c,v 1.32 2004/02/23 06:19:32 drahn Exp $ */
/* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */
/*
@@ -862,6 +862,7 @@ ReFault:
(VM_MAPENT_ISWIRED(ufi.entry) ? PMAP_WIRED : 0));
}
simple_unlock(&anon->an_lock);
+ pmap_update(ufi.orig_map->pmap);
}
/* locked: maps(read), amap(if there) */
@@ -1001,6 +1002,7 @@ ReFault:
pages[lcv]->flags &= ~(PG_BUSY); /* un-busy! */
UVM_PAGE_OWN(pages[lcv], NULL);
} /* for "lcv" loop */
+ pmap_update(ufi.orig_map->pmap);
} /* "gotpages" != 0 */
/* note: object still _locked_ */
} else {
@@ -1299,6 +1301,7 @@ ReFault:
*/
uvmfault_unlockall(&ufi, amap, uobj, oanon);
+ pmap_update(ufi.orig_map->pmap);
return (KERN_SUCCESS);
@@ -1761,6 +1764,7 @@ Case2:
pg->flags &= ~(PG_BUSY|PG_FAKE|PG_WANTED);
UVM_PAGE_OWN(pg, NULL);
uvmfault_unlockall(&ufi, amap, uobj, NULL);
+ pmap_update(ufi.orig_map->pmap);
UVMHIST_LOG(maphist, "<- done (SUCCESS!)",0,0,0,0);
return (KERN_SUCCESS);