summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-15 21:34:34 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-15 21:34:34 +0000
commite2b2dd619edd58f49d6ce8b43c1da41d66e9a7eb (patch)
tree69faf09b84dc583d6dd2a6afb7c4d7caf470743f /sys/uvm
parent43cbd5fb7af372c4817d128b7914b3ab3e010117 (diff)
Change pmap_remove_holes() to take a vmspace instead of a map as its argument.
Use this on vax to correctly pick the end of the stack area now that the stackgap adjustment code will no longer guarantee it is a fixed location.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c6
-rw-r--r--sys/uvm/uvm_pmap.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 16bbdb396a8..d89abbbf139 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.185 2015/02/09 07:14:38 kettenis Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.186 2015/02/15 21:34:33 miod Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -3199,7 +3199,7 @@ uvmspace_init(struct vmspace *vm, struct pmap *pmap, vaddr_t min, vaddr_t max,
vm->vm_refcnt = 1;
if (remove_holes)
- pmap_remove_holes(&vm->vm_map);
+ pmap_remove_holes(vm);
}
/*
@@ -3295,7 +3295,7 @@ uvmspace_exec(struct proc *p, vaddr_t start, vaddr_t end)
vm_map_unlock(map);
/* but keep MMU holes unavailable */
- pmap_remove_holes(map);
+ pmap_remove_holes(ovm);
} else {
/*
* pr's vmspace is being shared, so we can't reuse
diff --git a/sys/uvm/uvm_pmap.h b/sys/uvm/uvm_pmap.h
index 85dcb0037e5..e2fd987298d 100644
--- a/sys/uvm/uvm_pmap.h
+++ b/sys/uvm/uvm_pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pmap.h,v 1.23 2014/11/16 12:31:01 deraadt Exp $ */
+/* $OpenBSD: uvm_pmap.h,v 1.24 2015/02/15 21:34:33 miod Exp $ */
/* $NetBSD: uvm_pmap.h,v 1.1 2000/06/27 09:00:14 mrg Exp $ */
/*
@@ -159,7 +159,7 @@ void pmap_reference(pmap_t);
void pmap_remove(pmap_t, vaddr_t, vaddr_t);
#endif
#if !defined(pmap_remove_holes)
-void pmap_remove_holes(struct vm_map *);
+void pmap_remove_holes(struct vmspace *);
#endif
#if !defined(pmap_update)
void pmap_update(pmap_t);