summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
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/luna88k
parent6a877e9870ae505ac58c542fbf8e5ef5bb58b8ef (diff)
With the SysV memory allocation changes, allocsys() doesn't do anything
anymore. Get rid of it completely.
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r--sys/arch/luna88k/luna88k/machdep.c37
1 files changed, 2 insertions, 35 deletions
diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c
index 7c3ea5c6006..2726d4fa5bc 100644
--- a/sys/arch/luna88k/luna88k/machdep.c
+++ b/sys/arch/luna88k/luna88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.66 2009/08/09 10:40:17 blambert Exp $ */
+/* $OpenBSD: machdep.c,v 1.67 2009/08/11 18:46:32 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -102,7 +102,6 @@
#include <ddb/db_output.h> /* db_printf() */
#endif /* DDB */
-caddr_t allocsys(caddr_t);
void consinit(void);
void cpu_boot_secondary_processors(void);
void dumpconf(void);
@@ -353,8 +352,7 @@ identifycpu()
void
cpu_startup()
{
- caddr_t v;
- int sz, i;
+ int i;
vaddr_t minaddr, maxaddr;
/*
@@ -439,17 +437,6 @@ cpu_startup()
#endif
/*
- * 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 the OBIO space that we hardwired in pmap_bootstrap
*/
obiova = OBIO_START;
@@ -506,26 +493,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
boot(howto)
int howto;