summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-08-11 18:46:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-08-11 18:46:33 +0000
commit71991877bea22a82789b29c8995baf0589fd2be4 (patch)
treecbe3044ff860228bcda532fc2ccb5f9e523a0853 /sys/arch/mvmeppc
parent6a877e9870ae505ac58c542fbf8e5ef5bb58b8ef (diff)
With the SysV memory allocation changes, allocsys() doesn't do anything
anymore. Get rid of it completely.
Diffstat (limited to 'sys/arch/mvmeppc')
-rw-r--r--sys/arch/mvmeppc/mvmeppc/machdep.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c
index 4310933de8d..c5685002d6a 100644
--- a/sys/arch/mvmeppc/mvmeppc/machdep.c
+++ b/sys/arch/mvmeppc/mvmeppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.60 2009/08/09 10:40:17 blambert Exp $ */
+/* $OpenBSD: machdep.c,v 1.61 2009/08/11 18:46:32 miod Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -135,8 +135,6 @@ int system_type = SYS_TYPE; /* XXX Hardwire it for now */
struct firmware *fw = NULL;
extern struct firmware ppc1_firmware;
-caddr_t allocsys(caddr_t);
-
/*
* Extent maps to manage I/O. Allocate storage for 8 regions in each,
* initially. Later devio_malloc_safe will indicate that it's safe to
@@ -384,8 +382,6 @@ install_extint(handler)
void
cpu_startup()
{
- int sz;
- caddr_t v;
vaddr_t minaddr, maxaddr;
proc0.p_addr = proc0paddr;
@@ -396,16 +392,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.
*/
@@ -444,19 +430,6 @@ cpu_startup()
}
/*
- * Allocate space for system data structures.
- */
-caddr_t
-allocsys(v)
- caddr_t v;
-{
-#define valloc(name, type, num) \
- v = (caddr_t)(((name) = (type *)v) + (num))
-
- return v;
-}
-
-/*
* consinit
* Initialize system console.
*/