aboutsummaryrefslogtreecommitdiff
path: root/sys/pci
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-12-19 02:58:29 +0000
committerMike Smith <msmith@FreeBSD.org>1998-12-19 02:58:29 +0000
commit6417da252f83fd6e8c43c70495e185b1bb192c06 (patch)
treef97a605a271545609f96cba8eb834d962106b8a8 /sys/pci
parent6626c6045c38a22c2dc57621a840ae612da0e2e3 (diff)
Notes
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/pcisupport.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c
index f08155e20c3ea..41531a6c241fe 100644
--- a/sys/pci/pcisupport.c
+++ b/sys/pci/pcisupport.c
@@ -1,6 +1,6 @@
-/**************************************************************************
+42/**************************************************************************
**
-** $Id: pcisupport.c,v 1.80 1998/12/14 09:46:31 n_hibma Exp $
+** $Id: pcisupport.c,v 1.81 1998/12/19 02:51:22 msmith Exp $
**
** Device driver for DEC/INTEL PCI chipsets.
**
@@ -42,6 +42,7 @@
*/
#include "opt_pci.h"
+#include "opt_smp.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -183,6 +184,17 @@ fixbushigh_450nx(pcici_t tag)
} else /* if (devmap & 0x4) */ { /* A0 */
subordinatebus = pci_cfgread(tag, 0xd1, 1);
}
+ if (subordinatebus == 255) {
+ printf("fixbushigh_450nx: bogus highest PCI bus %d",
+ subordinatebus);
+#ifdef NBUS
+ subordinatebus = NBUS - 2;
+#else
+ subordinatebus = 10;
+#endif
+ printf(", reduced to %d\n", subordinatebus);
+ }
+
if (bootverbose)
printf("fixbushigh_450nx: subordinatebus is %d\n",
subordinatebus);