summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-08-05 00:02:08 +0000
committerdyson <dyson@FreeBSD.org>1997-08-05 00:02:08 +0000
commit8fa8ae3d0d6a785deced2be3e7fd647f31aaf23e (patch)
treec5bee309962268ed673826beec543a2de0ff70aa /sys/vm/vm_page.c
parent257e5090900068920bc5af171dec41a2939a084f (diff)
downloadFreeBSD-src-8fa8ae3d0d6a785deced2be3e7fd647f31aaf23e.zip
FreeBSD-src-8fa8ae3d0d6a785deced2be3e7fd647f31aaf23e.tar.gz
Get rid of the ad-hoc memory allocator for vm_map_entries, in lieu of
a simple, clean zone type allocator. This new allocator will also be used for machine dependent pmap PV entries.
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index fdb82c1..6d22ac5 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
- * $Id: vm_page.c,v 1.77 1997/03/23 02:44:54 dyson Exp $
+ * $Id: vm_page.c,v 1.78 1997/05/01 14:36:01 dyson Exp $
*/
/*
@@ -286,28 +286,6 @@ vm_page_startup(starta, enda, vaddr)
}
/*
- * round (or truncate) the addresses to our page size.
- */
-
- /*
- * Pre-allocate maps and map entries that cannot be dynamically
- * allocated via malloc(). The maps include the kernel_map and
- * kmem_map which must be initialized before malloc() will work
- * (obviously). Also could include pager maps which would be
- * allocated before kmeminit.
- *
- * Allow some kernel map entries... this should be plenty since people
- * shouldn't be cluttering up the kernel map (they should use their
- * own maps).
- */
-
- kentry_data_size = MAX_KMAP * sizeof(struct vm_map) +
- MAX_KMAPENT * sizeof(struct vm_map_entry);
- kentry_data_size = round_page(kentry_data_size);
- kentry_data = (vm_offset_t) vaddr;
- vaddr += kentry_data_size;
-
- /*
* Validate these zone addresses.
*/
OpenPOWER on IntegriCloud