VirtualBox

Changeset 81036 in vbox


Ignore:
Timestamp:
Sep 26, 2019 8:56:01 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133639
Message:

DevPci: Share more of the setirq code for bridges and added cycle (bogus data) detection. [build fix] bugref:9218

File:
1 edited

Legend:

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

    r81035 r81036  
    151151    int                 iIrqPinBridge  = ((pPciDev->uDevFn >> 3) + iIrq) & 3;
    152152    uint64_t            bmSeen[256/64] = { 0, 0, 0, 0 };
    153     ASMBitSet(bmSeen, pPciDevBus->Int.s.idxPdmBus); AssertCompile(sizeof(pPciDevBus->Int.s.idxPdmBus) == 1);
     153    AssertCompile(sizeof(pPciDevBus->Int.s.idxPdmBus) == 1);
     154    ASMBitSet(bmSeen, pPciDevBus->Int.s.idxPdmBus);
    154155
    155156    /* Walk the chain until we reach the host bus. */
     
    175176
    176177        /* Make sure that we cannot end up in a loop here: */
    177         AssertMsgReturn(ASMBitTestAndSet(bmSeen, RT_MIN(pPciDevBus->Int.s.idxPdmBus, 255)),
     178        AssertCompile(sizeof(pPciDevBus->Int.s.idxPdmBus) == 1);
     179        AssertMsgReturn(ASMBitTestAndSet(bmSeen, pPciDevBus->Int.s.idxPdmBus, 255),
    178180                        ("idxPdmBus=%u\n", pPciDevBus->Int.s.idxPdmBus),
    179181                        NULL);
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