VirtualBox

Changeset 45965 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
May 9, 2013 3:32:14 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Facility for getting the highest-priority pending interrupt from the APIC device.

File:
1 edited

Legend:

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

    r45025 r45965  
    12151215
    12161216/* Check if the APIC has a pending interrupt/if a TPR change would active one. */
    1217 PDMBOTHCBDECL(bool) apicHasPendingIrq(PPDMDEVINS pDevIns, VMCPUID idCpu)
     1217PDMBOTHCBDECL(bool) apicHasPendingIrq(PPDMDEVINS pDevIns, VMCPUID idCpu, uint8_t *pu8PendingIrq)
    12181218{
    12191219    APICDeviceInfo *pDev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
     
    12391239        return false;
    12401240
     1241    if (pu8PendingIrq)
     1242    {
     1243        Assert(irrv >= 0 && irrv <= UINT8_MAX);
     1244        *pu8PendingIrq = (uint8_t)irrv;
     1245    }
    12411246    return true;
    12421247}
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