VirtualBox

Ignore:
Timestamp:
May 25, 2009 1:59:29 PM (16 years ago)
Author:
vboxsync
Message:

Cleaned up PDMGet/SetTPR.

File:
1 edited

Legend:

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

    r19995 r20001  
    226226 *
    227227 * @returns VBox status code.
    228  * @param   pVM             VM handle.
     228 * @param   pVCpu           VMCPU handle.
    229229 * @param   u8TPR           The new TPR.
    230230 */
    231 VMMDECL(int) PDMApicSetTPR(PVM pVM, uint8_t u8TPR)
    232 {
     231VMMDECL(int) PDMApicSetTPR(PVMCPU pVCpu, uint8_t u8TPR)
     232{
     233    PVM pVM = pVCpu->CTX_SUFF(pVM);
    233234    if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns))
    234235    {
    235236        Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnSetTPR));
    236237        pdmLock(pVM);
    237         pVM->pdm.s.Apic.CTX_SUFF(pfnSetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), u8TPR);
     238        pVM->pdm.s.Apic.CTX_SUFF(pfnSetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu->idCpu, u8TPR);
    238239        pdmUnlock(pVM);
    239240        return VINF_SUCCESS;
     
    247248 *
    248249 * @returns The current TPR.
    249  * @param   pVM             VM handle.
     250 * @param   pVCpu           VMCPU handle.
    250251 * @param   pu8TPR          Where to store the TRP.
    251252 * @param   pfPending       Pending interrupt state (out).
    252253*/
    253 VMMDECL(int) PDMApicGetTPR(PVM pVM, uint8_t *pu8TPR, bool *pfPending)
    254 {
     254VMMDECL(int) PDMApicGetTPR(PVMCPU pVCpu, uint8_t *pu8TPR, bool *pfPending)
     255{
     256    PVM pVM = pVCpu->CTX_SUFF(pVM);
    255257    if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns))
    256258    {
    257259        Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR));
    258260        pdmLock(pVM);
    259         *pu8TPR = pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns));
     261        *pu8TPR = pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu->idCpu);
    260262        if (pfPending)
    261263            *pfPending = pVM->pdm.s.Apic.CTX_SUFF(pfnHasPendingIrq)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns));
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