Changeset 13974 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Nov 7, 2008 4:28:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r13972 r13974 58 58 VMCPUID VMMGetCpuId(PVM pVM) 59 59 { 60 #ifdef IN_RING3 61 /* Only emulation thread(s) allowed to ask for CPU id */ 62 if (!VM_IS_EMT(pVM)) 63 return 0; 64 #endif 65 60 66 /* Only emulation thread(s) allowed to ask for CPU id */ 61 67 VM_ASSERT_EMT(pVM); … … 81 87 PVMCPU VMMGetCpu(PVM pVM) 82 88 { 89 #ifdef IN_RING3 90 /* Only emulation thread(s) allowed to ask for CPU id */ 91 if (!VM_IS_EMT(pVM)) 92 return &pVM->aCpus[0]; 93 #endif 83 94 /* Only emulation thread(s) allowed to ask for CPU id */ 84 95 VM_ASSERT_EMT(pVM);
Note:
See TracChangeset
for help on using the changeset viewer.