summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_init.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2008-09-29 12:34:19 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2008-09-29 12:34:19 +0000
commit21894d13b1988e83e55f308cff2676cc8dbac17a (patch)
tree6cfe50b73dabdd770bbb9ce1208d4bbe96adf65c /sys/uvm/uvm_init.c
parentf17c13bdbdf7ea1fc28560afeb6f71fd9d92f6b8 (diff)
Use pools to do allocations for all sizes <= PAGE_SIZE.
This will allow us to escape the limitations of kmem_map. At this moment, the per-type limits are still enforced for all sizes, but we might loosen that limit in the future after some thinking. Original diff from Mickey in kernel/5761 , I massaged it a little to obey the per-type limits. miod@ ok
Diffstat (limited to 'sys/uvm/uvm_init.c')
-rw-r--r--sys/uvm/uvm_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/uvm/uvm_init.c b/sys/uvm/uvm_init.c
index 611f6fa1e77..0e52fcb0a31 100644
--- a/sys/uvm/uvm_init.c
+++ b/sys/uvm/uvm_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_init.c,v 1.16 2007/06/18 21:51:15 pedro Exp $ */
+/* $OpenBSD: uvm_init.c,v 1.17 2008/09/29 12:34:18 art Exp $ */
/* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */
/*
@@ -126,6 +126,7 @@ uvm_init()
*/
kmeminit();
+ uvm_km_page_init();
/*
* step 7: init all pagers and the pager_map.
@@ -149,8 +150,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
*/