Skip to content

Commit

Permalink
mptable: Always clear 'force_pci0' before setting/using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepherosa Ziehau committed Mar 20, 2011
1 parent e90e7ac commit 8d90576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys/platform/pc32/i386/mp_machdep.c
Expand Up @@ -3426,6 +3426,7 @@ mptable_pci_int_register(void)
if (TAILQ_EMPTY(&bus_info.mbi_list))
goto done;

force_pci0 = 0;
npcibus = 0;
TAILQ_FOREACH(bus, &bus_info.mbi_list, mb_link) {
if (bus->mb_type == MPTABLE_BUS_PCI)
Expand Down
1 change: 1 addition & 0 deletions sys/platform/pc64/x86_64/mp_machdep.c
Expand Up @@ -3421,6 +3421,7 @@ mptable_pci_int_register(void)
if (TAILQ_EMPTY(&bus_info.mbi_list))
goto done;

force_pci0 = 0;
npcibus = 0;
TAILQ_FOREACH(bus, &bus_info.mbi_list, mb_link) {
if (bus->mb_type == MPTABLE_BUS_PCI)
Expand Down

0 comments on commit 8d90576

Please sign in to comment.