VirtualBox

Ignore:
Timestamp:
Jul 11, 2008 8:14:13 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33170
Message:

Added PDMApicHasPendingIrq.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAll.cpp

    r10202 r10492  
    188188
    189189/**
     190 * Check if the APIC has a pending interrupt/if a TPR change would active one
     191 *
     192 * @returns Pending interrupt yes/no
     193 * @param   pDevIns         Device instance of the APIC.
     194 * @param   pfPending       Pending state (out)
     195 */
     196PDMDECL(int) PDMApicHasPendingIrq(PVM pVM, bool *pfPending)
     197{
     198    if (pVM->pdm.s.Apic.CTXALLSUFF(pDevIns))
     199    {
     200        Assert(pVM->pdm.s.Apic.CTXALLSUFF(pfnSetTPR));
     201        pdmLock(pVM);
     202        *pfPending = pVM->pdm.s.Apic.CTXALLSUFF(pfnHasPendingIrq)(pVM->pdm.s.Apic.CTXALLSUFF(pDevIns));
     203        pdmUnlock(pVM);
     204        return VINF_SUCCESS;
     205    }
     206    return VERR_PDM_NO_APIC_INSTANCE;
     207}
     208
     209/**
    190210 * Set the TPR (task priority register?).
    191211 *
Note: See TracChangeset for help on using the changeset viewer.

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