diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-25 12:55:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-25 12:55:41 +0000 |
commit | 8769fbf40387051a609dbe230e439304c7f84bda (patch) | |
tree | baff7d242cb1631b7535cd4162546124bc509a61 /sys/arch | |
parent | cb91f1c3d43eb3ce9e571adddd8f4eeb61df7a5c (diff) |
Add an extra argument to uvm_unmap_remove(), for the caller to tell it
whether removing holes or parts of them is allowed or not.
Only allow hole removal in uvmspace_free(), when tearing the vmspace down.
ok art@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 3619ae37e96..00cd9bf142d 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.142 2009/06/16 16:42:41 ariane Exp $ */ +/* $OpenBSD: pmap.c,v 1.143 2009/07/25 12:55:39 miod Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -1269,7 +1269,7 @@ pmap_free_pvpage(void) /* unmap the page */ dead_entries = NULL; uvm_unmap_remove(map, (vaddr_t)pvp, ((vaddr_t)pvp) + PAGE_SIZE, - &dead_entries, NULL); + &dead_entries, NULL, FALSE); vm_map_unlock(map); if (dead_entries != NULL) |