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 * Pull in more uvm prototypes.



details:   https://anonhg.NetBSD.org/src/rev/d38d541802cb
branches:  trunk
changeset: 467944:d38d541802cb
user:      pk <pk%NetBSD.org@localhost>
date:      Wed Mar 31 14:09:09 1999 +0000

description:
* Pull in more uvm prototypes.
* Retrieve MID on all modules.

diffstat:

 sys/arch/sparc/sparc/cpu.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 805e328753ec -r d38d541802cb sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Wed Mar 31 13:15:09 1999 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Wed Mar 31 14:09:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.91 1999/03/26 23:41:35 mycroft Exp $ */
+/*     $NetBSD: cpu.c,v 1.92 1999/03/31 14:09:09 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -62,6 +62,7 @@
 #include <vm/vm_kern.h>
 
 #include <uvm/uvm_extern.h>
+#include <uvm/uvm.h>
 
 #include <machine/autoconf.h>
 #include <machine/cpu.h>
@@ -255,7 +256,12 @@
        int node, mid;
 
        node = ma->ma_node;
+
+#if defined(MULTIPROCESSOR)
+       mid = (node != 0) ? getpropint(node, "mid", 0) : 0;
+#else
        mid = 0;
+#endif
 
        /*
         * First, find out if we're attaching the boot CPU.
@@ -272,7 +278,6 @@
                /* Note: `curpcb' is set to `proc0' in locore */
        } else {
 #if defined(MULTIPROCESSOR)
-               mid = getpropint(node, "mid", 0);
                cpi = sc->sc_cpuinfo = alloc_cpuinfo();
                cpi->curpcb = cpi->idle_u;
                /* Note: `idle_u' and `eintstack' are set in alloc_cpuinfo() */



Home | Main Index | Thread Index | Old Index