summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-06-17 00:27:39 +0000
committeralc <alc@FreeBSD.org>1999-06-17 00:27:39 +0000
commitbdb6bd306668664987b44d9b695607419b006dd2 (patch)
treeb835c119a1b12e4df5da2da40d9704afa36abfbb /sys/vm/vm_map.c
parent88e39a63db386a8e7939538fd1b350cbe663486b (diff)
downloadFreeBSD-src-bdb6bd306668664987b44d9b695607419b006dd2.zip
FreeBSD-src-bdb6bd306668664987b44d9b695607419b006dd2.tar.gz
Remove some unused declarations and duplicate initialization.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 9e3b14c..e8dc45c 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.165 1999/05/28 03:39:43 alc Exp $
+ * $Id: vm_map.c,v 1.166 1999/06/12 23:10:38 alc Exp $
*/
/*
@@ -133,13 +133,10 @@
* maps and requires map entries.
*/
-extern char kstack[];
-extern int inmprotect;
-
static struct vm_zone kmapentzone_store, mapentzone_store, mapzone_store;
static vm_zone_t mapentzone, kmapentzone, mapzone, vmspace_zone;
static struct vm_object kmapentobj, mapentobj, mapobj;
-#define MAP_ENTRY_INIT 128
+
static struct vm_map_entry map_entry_init[MAX_MAPENT];
static struct vm_map_entry kmap_entry_init[MAX_KMAPENT];
static struct vm_map map_init[MAX_KMAP];
@@ -180,7 +177,6 @@ vmspace_alloc(min, max)
struct vmspace *vm;
vm = zalloc(vmspace_zone);
- bzero(&vm->vm_map, sizeof vm->vm_map);
vm_map_init(&vm->vm_map, min, max);
pmap_pinit(vmspace_pmap(vm));
vm->vm_map.pmap = vmspace_pmap(vm); /* XXX */
OpenPOWER on IntegriCloud