Changeset 37475 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jun 15, 2011 4:42:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAll.cpp
r37452 r37475 315 315 if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns)) 316 316 { 317 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)); 318 pdmLock(pVM); 319 pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, u64Value); 320 pdmUnlock(pVM); 321 return VINF_SUCCESS; 317 AssertPtr(pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)); 318 return pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, u64Value); 322 319 } 323 320 return VERR_PDM_NO_APIC_INSTANCE; … … 338 335 if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns)) 339 336 { 340 Assert (pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR));341 pdmLock(pVM); 342 pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, pu64Value);343 pdmUnlock(pVM); 344 return VINF_SUCCESS;337 AssertPtr(pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR)); 338 pdmLock(pVM); 339 int rc = pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, pu64Value); 340 pdmUnlock(pVM); 341 return rc; 345 342 } 346 343 return VERR_PDM_NO_APIC_INSTANCE;
Note:
See TracChangeset
for help on using the changeset viewer.