Changeset 31348 in vbox for trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
- Timestamp:
- Aug 4, 2010 8:21:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r30889 r31348 965 965 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 966 966 967 # ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION 968 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 969 RTThreadPreemptDisable(&PreemptState); 970 # elif !defined(RT_OS_WINDOWS) 971 RTCCUINTREG uFlags = ASMIntDisableFlags(); 972 # endif 967 973 /* Select a valid VCPU context. */ 968 974 ASMAtomicWriteU32(&pVCpu->idHostCpu, RTMpCpuId()); … … 982 988 /* Clear the VCPU context. */ 983 989 ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID); 990 # ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION 991 RTThreadPreemptRestore(&PreemptState); 992 # elif !defined(RT_OS_WINDOWS) 993 ASMSetFlags(uFlags); 994 # endif 984 995 return rc; 985 996 }
Note:
See TracChangeset
for help on using the changeset viewer.