Changeset 8879 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- May 16, 2008 11:13:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r8878 r8879 511 511 static DECLCALLBACK(void) HWACCMR0EnableCPU(RTCPUID idCpu, void *pvUser1, void *pvUser2) 512 512 { 513 PVM pVM = (PVM)pvUser1; 514 int *paRc = (int *)pvUser2; 515 void *pvPageCpu; 516 RTHCPHYS pPageCpuPhys; 513 PVM pVM = (PVM)pvUser1; 514 int *paRc = (int *)pvUser2; 515 void *pvPageCpu; 516 RTHCPHYS pPageCpuPhys; 517 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu]; 517 518 518 519 Assert(pVM); … … 520 521 Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo)); 521 522 523 pCpu->idCpu = idCpu; 524 522 525 /* Should never happen */ 523 526 if (!HWACCMR0Globals.aCpuInfo[idCpu].pMemObj) … … 532 535 if (pVM->hwaccm.s.vmx.fSupported) 533 536 { 534 paRc[idCpu] = VMXR0EnableCpu( &HWACCMR0Globals.aCpuInfo[idCpu], pVM, pvPageCpu, pPageCpuPhys);537 paRc[idCpu] = VMXR0EnableCpu(pCpu, pVM, pvPageCpu, pPageCpuPhys); 535 538 AssertRC(paRc[idCpu]); 536 539 if (VBOX_SUCCESS(paRc[idCpu])) … … 540 543 if (pVM->hwaccm.s.svm.fSupported) 541 544 { 542 paRc[idCpu] = SVMR0EnableCpu( &HWACCMR0Globals.aCpuInfo[idCpu], pVM, pvPageCpu, pPageCpuPhys);545 paRc[idCpu] = SVMR0EnableCpu(pCpu, pVM, pvPageCpu, pPageCpuPhys); 543 546 AssertRC(paRc[idCpu]); 544 547 if (VBOX_SUCCESS(paRc[idCpu]))
Note:
See TracChangeset
for help on using the changeset viewer.