summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2008-11-24 19:19:47 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2008-11-24 19:19:47 +0000
commitec95f119e1d39eecdaf9930d76d9336b60069225 (patch)
tree452441b76d72c67f98e294baf7753e51e2e55874 /sys
parentb4e463efe62647a9157a0af232e40490c82d0650 (diff)
init uvm_km_page memory a bit earlier to reduce pressure on pmap bootstrap
pages. "looks good/no problems with it" tedu@ miod@ art@
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/uvm/uvm_init.c b/sys/uvm/uvm_init.c
index 699dea262d5..75b7bde3a45 100644
--- a/sys/uvm/uvm_init.c
+++ b/sys/uvm/uvm_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_init.c,v 1.18 2008/10/18 12:11:30 kettenis Exp $ */
+/* $OpenBSD: uvm_init.c,v 1.19 2008/11/24 19:19:46 kurt Exp $ */
/* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */
/*
@@ -140,6 +140,11 @@ uvm_init()
amap_init(); /* init amap module */
/*
+ * step 9: init uvm_km_page allocator memory.
+ */
+ uvm_km_page_init();
+
+ /*
* the VM system is now up! now that malloc is up we can resize the
* <obj,off> => <page> hash table for general use and enable paging
* of kernel objects.
@@ -149,8 +154,6 @@ uvm_init()
uao_create(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS,
UAO_FLAG_KERNSWAP);
- uvm_km_page_init();
-
/*
* reserve some unmapped space for malloc/pool use after free usage
*/