Changeset 15789 in vbox for trunk/src/VBox
- Timestamp:
- Jan 5, 2009 10:00:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r15701 r15789 798 798 { 799 799 int rc; 800 RTCPUID idCpu = RTMpCpuId();801 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu];802 800 803 801 AssertReturn(pVM, VERR_INVALID_PARAMETER); … … 850 848 } 851 849 850 RTCCUINTREG fFlags = ASMIntDisableFlags(); 851 RTCPUID idCpu = RTMpCpuId(); 852 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu]; 853 852 854 ASMAtomicWriteBool(&pCpu->fInUse, true); 853 855 … … 856 858 857 859 ASMAtomicWriteBool(&pCpu->fInUse, false); 860 ASMSetFlags(fFlags); 858 861 859 862 return rc; … … 870 873 { 871 874 int rc; 872 RTCPUID idCpu = RTMpCpuId();873 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu];874 875 875 876 AssertReturn(pVM, VERR_INVALID_PARAMETER); … … 882 883 AssertReturn(!ASMAtomicReadBool(&HWACCMR0Globals.fSuspended), VERR_HWACCM_SUSPEND_PENDING); 883 884 885 RTCCUINTREG fFlags = ASMIntDisableFlags(); 886 RTCPUID idCpu = RTMpCpuId(); 887 PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu]; 888 884 889 ASMAtomicWriteBool(&pCpu->fInUse, true); 885 890 … … 888 893 889 894 ASMAtomicWriteBool(&pCpu->fInUse, false); 895 ASMSetFlags(fFlags); 890 896 return rc; 891 897 }
Note:
See TracChangeset
for help on using the changeset viewer.