Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 clean up mdallocsys().



details:   https://anonhg.NetBSD.org/src/rev/b90421e56eed
branches:  trunk
changeset: 485210:b90421e56eed
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Apr 22 12:03:33 2000 +0000

description:
clean up mdallocsys().

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

diffs (61 lines):

diff -r 324829943c9c -r b90421e56eed sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Sat Apr 22 08:19:49 2000 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Sat Apr 22 12:03:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.58 2000/04/10 13:34:20 pk Exp $ */
+/*     $NetBSD: machdep.c,v 1.59 2000/04/22 12:03:33 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -144,7 +144,6 @@
 int   safepri = 0;
 
 void   dumpsys __P((void));
-caddr_t        mdallocsys __P((caddr_t));
 void   stackdump __P((void));
 
 /* 
@@ -214,11 +213,10 @@
         * Find out how much space we need, allocate it,
         * and then give everything true virtual addresses.
         */
-       sz = (long)allocsys(NULL, mdallocsys);
-printf("cpu_startup: allocsys %ld, rounded %ld\n", sz, round_page(sz));
+       sz = (long)allocsys(NULL, NULL);
        if ((v = (caddr_t)uvm_km_alloc(kernel_map, round_page(sz))) == 0)
                panic("startup: no room for %lx bytes of tables", sz);
-       if (allocsys(v, mdallocsys) - v != sz)
+       if (allocsys(v, NULL) - v != sz)
                panic("startup: table size inconsistency");
 
         /*
@@ -299,20 +297,6 @@
 #endif
 }
 
-caddr_t
-mdallocsys(v)
-       caddr_t v;
-{
-
-#if 0  /* XXX this is from allocsys().  we have a copy as we use nbuf */
-       if (nbuf == 0) {
-               nbuf = bufpages;
-               if (nbuf < 16)
-                       nbuf = 16;
-       }
-#endif
-}
-
 /*
  * Set up registers on exec.
  */
@@ -1294,7 +1278,7 @@
         * Compute the location, size, and number of segments actually
         * returned by the VM code.
         */
-       segs[0].ds_addr= NULL; /* UPA does not map things */
+       segs[0].ds_addr = NULL; /* UPA does not map things */
        segs[0].ds_len = size;
        *rsegs = 1;
 



Home | Main Index | Thread Index | Old Index