Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Make this compile again.



details:   https://anonhg.NetBSD.org/src/rev/16a61e9a4fb7
branches:  trunk
changeset: 473117:16a61e9a4fb7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 20 20:15:27 1999 +0000

description:
Make this compile again.

diffstat:

 sys/arch/sparc/sparc/machdep.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 9b681e561ff7 -r 16a61e9a4fb7 sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c    Thu May 20 20:07:55 1999 +0000
+++ b/sys/arch/sparc/sparc/machdep.c    Thu May 20 20:15:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.147 1999/05/20 08:21:46 lukem Exp $ */
+/*     $NetBSD: machdep.c,v 1.148 1999/05/20 20:15:27 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -163,7 +163,7 @@
 cpu_startup()
 {
        unsigned i;
-       caddr_t v, sz;
+       caddr_t v;
        int base, residual;
 #ifdef DEBUG
        extern int pmapdebug;
@@ -203,12 +203,12 @@
         * Find out how much space we need, allocate it,
         * and then give everything true virtual addresses.
         */
-       sz = allocsys(NULL, NULL);
+       size = (vsize_t)allocsys(NULL, NULL);
 
-       if ((v = (caddr_t)uvm_km_alloc(kernel_map, round_page(sz))) == 0)
+       if ((v = (caddr_t)uvm_km_alloc(kernel_map, round_page(size))) == 0)
                panic("startup: no room for tables");
 
-       if (allocsys(v, NULL) - v != sz)
+       if ((vsize_t)(allocsys(v, NULL) - v) != size)
                panic("startup: table size inconsistency");
 
        if (CPU_ISSUN4C && bufpages > (128 * (65536/MAXBSIZE)))



Home | Main Index | Thread Index | Old Index