Changeset 15797 in vbox for trunk/src/VBox
- Timestamp:
- Jan 5, 2009 12:15:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r15789 r15797 849 849 850 850 RTCCUINTREG fFlags = ASMIntDisableFlags(); 851 RTCPUID idCpu = RTMpCpuId();852 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu]; 853 851 PHWACCM_CPUINFO pCpu = HWACCMR0GetCurrentCpu(); 852 853 /* @note Not correct as we can be rescheduled to a different cpu, but the fInUse case is mostly for debugging. */ 854 854 ASMAtomicWriteBool(&pCpu->fInUse, true); 855 ASMSetFlags(fFlags); 855 856 856 857 /* Init a VT-x or AMD-V VM. */ … … 858 859 859 860 ASMAtomicWriteBool(&pCpu->fInUse, false); 860 ASMSetFlags(fFlags);861 862 861 return rc; 863 862 } … … 883 882 AssertReturn(!ASMAtomicReadBool(&HWACCMR0Globals.fSuspended), VERR_HWACCM_SUSPEND_PENDING); 884 883 884 /* @note Not correct as we can be rescheduled to a different cpu, but the fInUse case is mostly for debugging. */ 885 885 RTCCUINTREG fFlags = ASMIntDisableFlags(); 886 RTCPUID idCpu = RTMpCpuId(); 887 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu]; 886 PHWACCM_CPUINFO pCpu = HWACCMR0GetCurrentCpu(); 888 887 889 888 ASMAtomicWriteBool(&pCpu->fInUse, true); 889 ASMSetFlags(fFlags); 890 890 891 891 /* Terminate a VT-x or AMD-V VM. */ … … 893 893 894 894 ASMAtomicWriteBool(&pCpu->fInUse, false); 895 ASMSetFlags(fFlags);896 895 return rc; 897 896 }
Note:
See TracChangeset
for help on using the changeset viewer.