diff options
author | dyson <dyson@FreeBSD.org> | 1997-08-05 00:02:08 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-08-05 00:02:08 +0000 |
commit | 8fa8ae3d0d6a785deced2be3e7fd647f31aaf23e (patch) | |
tree | c5bee309962268ed673826beec543a2de0ff70aa /sys/vm/vm_page.c | |
parent | 257e5090900068920bc5af171dec41a2939a084f (diff) | |
download | FreeBSD-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.c | 24 |
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. */ |