VirtualBox

Ignore:
Timestamp:
Nov 17, 2016 5:44:28 PM (8 years ago)
Author:
vboxsync
Message:

DevPciIch9: Default to PDM bus numbering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r64696 r64697  
    15171517        case 0x0604:
    15181518            /* PCI-to-PCI bridge. */
    1519             AssertMsg(pPciRoot->uPciBiosBus < 255, ("Too many bridges on the bus\n"));
    15201519            ich9pciBiosInitBridge(pPciRoot, uBus, uDevFn);
    15211520            break;
     
    17141713                  ("Device is not a PCI bridge but on the list of PCI bridges\n"));
    17151714        PDEVPCIBUS pChildBus = PDMINS_2_DATA(pBridge->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS);
    1716         pPciRoot->uPciBiosBus++;
    1717         ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pPciRoot->uPciBiosBus);
     1715        ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pChildBus->iBus);
    17181716    }
    17191717    PCIDevSetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS, pPciRoot->uPciBiosBus);
     
    17581756     */
    17591757    PDEVPCIBUS pBus = &pPciRoot->PciBus;
    1760     ich9pciBiosInitBridgeTopology(pPciRoot, pBus, 0, 0);
     1758    AssertLogRel(pBus->iBus == 0);
     1759    ich9pciBiosInitBridgeTopology(pPciRoot, pBus, 0, pBus->iBus);
    17611760
    17621761    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette