From b79933ebfae10dd578fbb7bf77dfe50d766ff7c8 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Tue, 5 Aug 1997 22:07:27 +0000 Subject: Fix some bugs, document vm_zone better. Add copyright to vm_zone.h. Use the new zone code in pmap.c so that we can get rid of the ugly ad-hoc allocations in pmap.c. --- sys/vm/pmap.h | 3 +-- sys/vm/vm_map.c | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index c27110cae9bf..f0eb1f1ec947 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: pmap.h,v 1.21 1997/07/17 04:34:02 dyson Exp $ + * $Id: pmap.h,v 1.22 1997/08/05 01:32:50 dyson Exp $ */ /* @@ -131,7 +131,6 @@ void pmap_swapout_proc __P((struct proc *p)); void pmap_swapin_proc __P((struct proc *p)); void pmap_activate __P((struct proc *p)); vm_offset_t pmap_addr_hint __P((vm_object_t obj, vm_offset_t addr, vm_size_t size)); -void pmap_init2 __P((void)); #endif /* KERNEL */ diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 5c7a77b56393..3ce7173ef2be 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.80 1997/08/05 00:01:56 dyson Exp $ + * $Id: vm_map.c,v 1.81 1997/08/05 01:32:52 dyson Exp $ */ /* @@ -207,7 +207,6 @@ vmspace_alloc(min, max, pageable) void vm_init2(void) { - pmap_init2(); _zinit(kmapentzone, &kmapentobj, NULL, 0, 4096, ZONE_INTERRUPT, 4); _zinit(mapentzone, &mapentobj, @@ -304,7 +303,7 @@ vm_map_entry_dispose(map, entry) vm_map_t map; vm_map_entry_t entry; { - zfreei((map->system_map || !mapentzone) ? kmapentzone : mapentzone, entry); + zfree((map->system_map || !mapentzone) ? kmapentzone : mapentzone, entry); } /* @@ -317,7 +316,7 @@ static vm_map_entry_t vm_map_entry_create(map) vm_map_t map; { - return zalloci((map->system_map || !mapentzone) ? kmapentzone : mapentzone); + return zalloc((map->system_map || !mapentzone) ? kmapentzone : mapentzone); } /* -- cgit v1.3