From 26b98557922be64225e7edc7aa2a1e3cf519475c Mon Sep 17 00:00:00 2001 From: tegge Date: Thu, 10 Aug 2000 17:33:24 +0000 Subject: Don't skip IOAPIC id conflict detection when only one pci bus is present. PR: 20312 Reviewed by: Steve Roome --- sys/kern/subr_smp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/kern/subr_smp.c') diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index f8e77a1..50d1ce7 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -1155,12 +1155,10 @@ fix_mp_table(void) */ /* check the 1 PCI bus case for sanity */ - if (num_pci_bus == 1) { - - /* if it is number 0 all is well */ - if (bus_data[bus_pci].bus_id == 0) - return; - + /* if it is number 0 all is well */ + if (num_pci_bus == 1 && + bus_data[bus_pci].bus_id != 0) { + /* mis-numbered, swap with whichever bus uses slot 0 */ /* swap the bus entry types */ -- cgit v1.1