VirtualBox

Changeset 20001 in vbox for trunk/src/VBox/VMM/VMMR0


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

Cleaned up PDMGet/SetTPR.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r19992 r20001  
    947947
    948948        /* TPR caching in CR8 */
    949         int rc = PDMApicGetTPR(pVM, &u8LastVTPR, &fPending);
     949        int rc = PDMApicGetTPR(pVCpu, &u8LastVTPR, &fPending);
    950950        AssertRC(rc);
    951951        pVMCB->ctrl.IntCtrl.n.u8VTPR = u8LastVTPR;
     
    13401340    if (fSyncTPR)
    13411341    {
    1342         rc = PDMApicSetTPR(pVM, pVMCB->ctrl.IntCtrl.n.u8VTPR);
     1342        rc = PDMApicSetTPR(pVCpu, pVMCB->ctrl.IntCtrl.n.u8VTPR);
    13431343        AssertRC(rc);
    13441344    }
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r20000 r20001  
    21812181        bool    fPending;
    21822182
    2183         int rc = PDMApicGetTPR(pVM, &u8TPR, &fPending);
     2183        int rc = PDMApicGetTPR(pVCpu, &u8TPR, &fPending);
    21842184        AssertRC(rc);
    21852185        /* The TPR can be found at offset 0x80 in the APIC mmio page. */
     
    23842384    if (fSyncTPR)
    23852385    {
    2386         rc = PDMApicSetTPR(pVM, pVCpu->hwaccm.s.vmx.pVAPIC[0x80] >> 4);
     2386        rc = PDMApicSetTPR(pVCpu, pVCpu->hwaccm.s.vmx.pVAPIC[0x80] >> 4);
    23872387        AssertRC(rc);
    23882388    }
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