VirtualBox

Changeset 64701 in vbox


Ignore:
Timestamp:
Nov 17, 2016 6:39:51 PM (8 years ago)
Author:
vboxsync
Message:

ich9pciBiosInitBridgeTopology: VBOX_PCI_SUBORDINATE_BUS again.

File:
1 edited

Legend:

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

    r64700 r64701  
    17071707    }
    17081708
    1709     uint8_t uMaxSubNum = 0;
     1709    uint8_t uMaxSubNum = pBus->iBus;
    17101710    for (uint32_t iBridge = 0; iBridge < pBus->cBridges; iBridge++)
    17111711    {
     
    17151715        PDEVPCIBUS pChildBus = PDMINS_2_DATA(pBridge->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS);
    17161716        uint8_t uMaxChildSubBus = ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pChildBus->iBus);
    1717         uMaxSubNum = RT_MAX(uMaxSubNum, RT_MAX(uMaxChildSubBus, pChildBus->iBus));
     1717        uMaxSubNum = RT_MAX(uMaxSubNum, uMaxChildSubBus);
    17181718    }
    17191719    PCIDevSetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS, uMaxSubNum);
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