summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
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/sparc
parent6a877e9870ae505ac58c542fbf8e5ef5bb58b8ef (diff)
With the SysV memory allocation changes, allocsys() doesn't do anything
anymore. Get rid of it completely.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 600593896e1..5e0b5825ecf 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.121 2009/08/09 10:40:18 blambert Exp $ */
+/* $OpenBSD: machdep.c,v 1.122 2009/08/11 18:46:32 miod Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -137,7 +137,6 @@ int safepri = 0;
vaddr_t dvma_base, dvma_end;
struct extent *dvmamap_extent;
-caddr_t allocsys(caddr_t);
void dumpsys(void);
void stackdump(void);
@@ -147,8 +146,6 @@ void stackdump(void);
void
cpu_startup()
{
- caddr_t v;
- int sz;
#ifdef DEBUG
extern int pmapdebug;
int opmapdebug = pmapdebug;
@@ -183,18 +180,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_alloc(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.
*/
@@ -264,26 +249,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.
- *
- * You 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);
-}
-
-/*
* Set up registers on exec.
*
* XXX this entire mess must be fixed