diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-11 18:46:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-11 18:46:33 +0000 |
commit | 71991877bea22a82789b29c8995baf0589fd2be4 (patch) | |
tree | cbe3044ff860228bcda532fc2ccb5f9e523a0853 /sys/arch/mvme88k | |
parent | 6a877e9870ae505ac58c542fbf8e5ef5bb58b8ef (diff) |
With the SysV memory allocation changes, allocsys() doesn't do anything
anymore. Get rid of it completely.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 8f0618e21e7..13f790cd9ba 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.233 2009/08/09 10:40:17 blambert Exp $ */ +/* $OpenBSD: machdep.c,v 1.234 2009/08/11 18:46:32 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -92,7 +92,6 @@ #include <ddb/db_var.h> #endif /* DDB */ -caddr_t allocsys(caddr_t); void consinit(void); void cpu_hatch_secondary_processors(void *); void dumb_delay(int); @@ -339,8 +338,7 @@ setstatclockrate(int newhz) void cpu_startup() { - caddr_t v; - int sz, i; + int i; vaddr_t minaddr, maxaddr; /* @@ -362,17 +360,6 @@ cpu_startup() ptoa(physmem)/1024/1024); /* - * Find out how much space we need, allocate it, - * and then give everything true virtual addresses. - */ - sz = (int)allocsys((caddr_t)0); - - if ((v = (caddr_t)uvm_km_zalloc(kernel_map, round_page(sz))) == 0) - panic("startup: no room for tables"); - if (allocsys(v) - v != sz) - panic("startup: table size inconsistency"); - - /* * Grab machine dependent memory spaces */ switch (brdtyp) { @@ -441,26 +428,6 @@ cpu_startup() } } -/* - * Allocate space for system data structures. We are given - * a starting virtual address and we return a final virtual - * address; along the way we set each data structure pointer. - * - * We call allocsys() with 0 to find out how much space we want, - * allocate that much and fill it with zeroes, and then call - * allocsys() again with the correct base virtual address. - */ -caddr_t -allocsys(v) - caddr_t v; -{ - -#define valloc(name, type, num) \ - v = (caddr_t)(((name) = (type *)v) + (num)) - - return v; -} - __dead void _doboot() { |