diff --git a/dev/bus/pci/bus_mgr/bus_mgr.cpp b/dev/bus/pci/bus_mgr/bus_mgr.cpp index d64a1aa6..d817c2be 100644 --- a/dev/bus/pci/bus_mgr/bus_mgr.cpp +++ b/dev/bus/pci/bus_mgr/bus_mgr.cpp @@ -95,7 +95,8 @@ void add_to_bus_list(bus *b) { } void set_last_bus(uint8_t bus) { - DEBUG_ASSERT(bus >= last_bus); + LTRACEF("bus %hhu, existing last_bus %hhu\n", bus, last_bus); + DEBUG_ASSERT_MSG(bus >= last_bus, "bus %u, last_bus %u\n", bus, last_bus); last_bus = bus; } diff --git a/dev/bus/pci/pci.cpp b/dev/bus/pci/pci.cpp index b19b0ea1..6c52ec73 100644 --- a/dev/bus/pci/pci.cpp +++ b/dev/bus/pci/pci.cpp @@ -266,7 +266,6 @@ status_t pci_init_legacy() { if ((pcib = pci_bios32::detect())) { dprintf(INFO, "PCI: pci bios functions installed\n"); dprintf(INFO, "PCI: last pci bus is %d\n", pcib->get_last_bus()); - pci_bus_mgr_init(); return NO_ERROR; } @@ -274,7 +273,6 @@ status_t pci_init_legacy() { if ((pcib = pci_type1::detect())) { dprintf(INFO, "PCI: pci type1 functions installed\n"); dprintf(INFO, "PCI: last pci bus is %d\n", pcib->get_last_bus()); - pci_bus_mgr_init(); return NO_ERROR; }