Changeset 12573 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Sep 18, 2008 1:11:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r10450 r12573 60 60 #endif /* !IN_RING0 */ 61 61 62 /** 63 * Gets the current virtual CPU ID. 64 * 65 * @returns The CPU ID. 66 * @param pVM Pointer to the shared VM handle. 67 * @thread EMT 68 */ 69 uint32_t VMMGetCpuId(PVM pVM) 70 { 71 #ifdef VBOX_WITH_GUEST_SMPT 72 # if defined(IN_GC) 73 /* There is only one CPU if we're in GC. */ 74 return 0; 75 76 # elif defined(IN_RING3) 77 /** @todo SMP: Use TLS. */ 78 return 0; /** @todo SMP */ 79 80 # else /* IN_RING0 */ 81 /** @todo SMP: Get the real CPU ID and use a table in the VM structure to 82 * translate it. */ 83 return 0; 84 # endif /* IN_RING0 */ 85 86 #else 87 VM_ASSERT_EMT(pVM); 88 return 0; 89 #endif 90 } 91 62 92 63 93 /** … … 73 103 return VBOX_SVN_REV; 74 104 } 105
Note:
See TracChangeset
for help on using the changeset viewer.