VirtualBox

Changeset 34752 in vbox


Ignore:
Timestamp:
Dec 6, 2010 2:31:57 PM (14 years ago)
Author:
vboxsync
Message:

LPC: print PIRQ mapping too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevLPC.cpp

    r34506 r34752  
    214214        pHlp->pfnPrintf(pHlp, "APIC backdoor closed: %02x %02x\n",
    215215                        pThis->dev.config[0xde], pThis->dev.config[0xad]);
     216
     217
     218    for (int iLine = 0; iLine < 8; ++iLine)
     219    {
     220
     221        int      iBase = iLine < 4 ? 0x60 : 0x64;
     222        uint8_t  iMap = PCIDevGetByte(&pThis->dev, iBase + iLine);
     223
     224        if ((iMap & 0x80) != 0)
     225            pHlp->pfnPrintf(pHlp, "PIRQ%c disabled\n", 'A' + iLine);
     226        else
     227            pHlp->pfnPrintf(pHlp, "PIRQ%c -> IRQ%d\n", 'A' + iLine, iMap & 0xf);
     228    }
    216229}
    217230
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