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/socppc | |
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/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/machdep.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/arch/socppc/socppc/machdep.c b/sys/arch/socppc/socppc/machdep.c index b5efd4e5ba3..f1477e0ad49 100644 --- a/sys/arch/socppc/socppc/machdep.c +++ b/sys/arch/socppc/socppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.16 2009/08/09 10:40:17 blambert Exp $ */ +/* $OpenBSD: machdep.c,v 1.17 2009/08/11 18:46:32 miod Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -133,7 +133,6 @@ int allowaperture = 0; #endif #endif -caddr_t allocsys(caddr_t); void dumpsys(void); int lcsplx(int ipl); void myetheraddr(u_char *); @@ -740,11 +739,8 @@ bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh, void cpu_startup() { - int sz; - caddr_t v; vaddr_t minaddr, maxaddr; - v = (caddr_t)proc0paddr + USPACE; proc0.p_addr = proc0paddr; printf("%s", version); @@ -753,16 +749,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"); - - /* * Determine how many buffers to allocate. * We allocate bufcachepercent% of memory for buffer space. */ @@ -796,18 +782,6 @@ cpu_startup() } /* - * Allocate space for system data structures. - */ -caddr_t -allocsys(caddr_t v) -{ -#define valloc(name, type, num) \ - v = (caddr_t)(((name) = (type *)v) + (num)) - - return v; -} - -/* * consinit * Initialize system console. */ |