Changeset 20001 in vbox for trunk/src/VBox/VMM/VMMAll/PDMAll.cpp
- Timestamp:
- May 25, 2009 1:59:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAll.cpp
r19995 r20001 226 226 * 227 227 * @returns VBox status code. 228 * @param pV M VMhandle.228 * @param pVCpu VMCPU handle. 229 229 * @param u8TPR The new TPR. 230 230 */ 231 VMMDECL(int) PDMApicSetTPR(PVM pVM, uint8_t u8TPR) 232 { 231 VMMDECL(int) PDMApicSetTPR(PVMCPU pVCpu, uint8_t u8TPR) 232 { 233 PVM pVM = pVCpu->CTX_SUFF(pVM); 233 234 if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns)) 234 235 { 235 236 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnSetTPR)); 236 237 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); 238 239 pdmUnlock(pVM); 239 240 return VINF_SUCCESS; … … 247 248 * 248 249 * @returns The current TPR. 249 * @param pV M VMhandle.250 * @param pVCpu VMCPU handle. 250 251 * @param pu8TPR Where to store the TRP. 251 252 * @param pfPending Pending interrupt state (out). 252 253 */ 253 VMMDECL(int) PDMApicGetTPR(PVM pVM, uint8_t *pu8TPR, bool *pfPending) 254 { 254 VMMDECL(int) PDMApicGetTPR(PVMCPU pVCpu, uint8_t *pu8TPR, bool *pfPending) 255 { 256 PVM pVM = pVCpu->CTX_SUFF(pVM); 255 257 if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns)) 256 258 { 257 259 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR)); 258 260 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); 260 262 if (pfPending) 261 263 *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.