diff options
author | dyson <dyson@FreeBSD.org> | 1997-08-05 22:07:27 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-08-05 22:07:27 +0000 |
commit | 55205b3be5c7c439805fe93670d300565bac90dc (patch) | |
tree | 4f2951b4428aecbe71c6406a49ca26649c293391 /sys/vm | |
parent | fbd1e32f9160ae4d4343706bf63cb07a2452250c (diff) | |
download | FreeBSD-src-55205b3be5c7c439805fe93670d300565bac90dc.zip FreeBSD-src-55205b3be5c7c439805fe93670d300565bac90dc.tar.gz |
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.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/pmap.h | 3 | ||||
-rw-r--r-- | sys/vm/vm_map.c | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index c27110c..f0eb1f1 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 5c7a77b..3ce7173 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); } /* |