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 - try to identify multi-processor machi...



details:   https://anonhg.NetBSD.org/src/rev/7f26bee678c8
branches:  trunk
changeset: 471882:7f26bee678c8
user:      pk <pk%NetBSD.org@localhost>
date:      Wed Apr 14 09:16:11 1999 +0000

description:
- try to identify multi-processor machines only on sun4m.
- mainbus_attach: on sun4's do not fall through to sun4c/sun4m configuration.

diffstat:

 sys/arch/sparc/sparc/autoconf.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 3a1085f0c74b -r 7f26bee678c8 sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Wed Apr 14 09:12:46 1999 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Wed Apr 14 09:16:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.116 1999/03/26 23:41:35 mycroft Exp $ */
+/*     $NetBSD: autoconf.c,v 1.117 1999/04/14 09:16:11 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -143,6 +143,10 @@
 #if defined(MULTIPROCESSOR)
        int node, n;
 
+       /* We only consider sun4m class multi-processor machines */
+       if (!CPU_ISSUN4M)
+               return (0);
+
        n = 0;
        node = findroot();
        for (node = firstchild(node); node; node = nextsibling(node)) {
@@ -1023,6 +1027,7 @@
                ma.ma_name = "vme";
                ma.ma_bp = bootpath;
                (void)config_found(dev, (void *)&ma, mbprint);
+               return;
        }
 #endif
 



Home | Main Index | Thread Index | Old Index