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 Fix thinko in previous (and misleading ...



details:   https://anonhg.NetBSD.org/src/rev/e727cfd12637
branches:  trunk
changeset: 784937:e727cfd12637
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Feb 14 12:44:16 2013 +0000

description:
Fix thinko in previous (and misleading comment): stop ignoring table
entries for to be ignored devices.

diffstat:

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

diffs (35 lines):

diff -r 30e85964fc5d -r e727cfd12637 sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Thu Feb 14 12:14:13 2013 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Thu Feb 14 12:44:16 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.249 2013/02/14 12:14:13 martin Exp $ */
+/*     $NetBSD: autoconf.c,v 1.250 2013/02/14 12:44:16 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.249 2013/02/14 12:14:13 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.250 2013/02/14 12:44:16 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1340,12 +1340,14 @@
                cp = prom_getpropstringA(node, "name", namebuf, sizeof namebuf);
                DPRINTF(ACDB_PROBE, (" name %s\n", namebuf));
                for (ssp = openboot_special; (sp = ssp->dev) != NULL; ssp++) {
-                       if (!(ssp->flags & BS_EARLY)) continue;
+                       if (!(ssp->flags & (BS_EARLY|BS_IGNORE))) continue;
                        if (strcmp(cp, sp) == 0)
                                break;
                }
                if (sp != NULL)
-                       continue; /* an "early" device already configured */
+                       continue;
+                       /* an "early" device already configured, or an
+                          ignored device */
 
                memset(&ma, 0, sizeof ma);
                ma.ma_bustag = &mainbus_space_tag;



Home | Main Index | Thread Index | Old Index