Call pci_print_verbose() before pci_add_resources() so that the order of

printf's during a verbose boot is more intuitive (the BAR listings and
interrupt routing info now comes after the config header dump rather than
just before it).
This commit is contained in:
John Baldwin 2005-04-14 17:52:55 +00:00
parent 3ec96caf72
commit 9e605855ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145079

View File

@ -1011,8 +1011,8 @@ pci_add_child(device_t bus, struct pci_devinfo *dinfo)
resource_list_init(&dinfo->resources); resource_list_init(&dinfo->resources);
pci_cfg_save(dinfo->cfg.dev, dinfo, 0); pci_cfg_save(dinfo->cfg.dev, dinfo, 0);
pci_cfg_restore(dinfo->cfg.dev, dinfo); pci_cfg_restore(dinfo->cfg.dev, dinfo);
pci_add_resources(pcib, bus, dinfo->cfg.dev);
pci_print_verbose(dinfo); pci_print_verbose(dinfo);
pci_add_resources(pcib, bus, dinfo->cfg.dev);
} }
static int static int