Changeset 13791 in vbox for trunk/include/VBox
- Timestamp:
- Nov 4, 2008 4:12:57 PM (16 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hwaccm.h
r13778 r13791 70 70 71 71 #ifndef IN_GC 72 VMMDECL(int) HWACCMFlushTLB(PVM pVM);73 VMMDECL(int) HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys);74 VMMDECL(bool) HWACCMIsNestedPagingActive(PVM pVM);72 VMMDECL(int) HWACCMFlushTLB(PVM pVM); 73 VMMDECL(int) HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); 74 VMMDECL(bool) HWACCMIsNestedPagingActive(PVM pVM); 75 75 VMMDECL(PGMMODE) HWACCMGetPagingMode(PVM pVM); 76 VMMDECL(RTCPUID) HWACCMGetVMCPUId(PVM pVM); 76 77 #else 77 78 /* Nop in GC */ -
trunk/include/VBox/vm.h
r13786 r13791 365 365 #else 366 366 /** @todo need to rework this macro for the case of multiple emulation threads for SMP */ 367 # define VM_IS_EMT(pVM) ( (pVM)->NativeThreadEMT== RTThreadNativeSelf())367 # define VM_IS_EMT(pVM) (VMR3GetVMCPUNativeThread(pVM) == RTThreadNativeSelf()) 368 368 #endif 369 369 … … 378 378 # define VM_ASSERT_EMT(pVM) \ 379 379 AssertMsg(VM_IS_EMT(pVM), \ 380 ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), pVM->NativeThreadEMT))380 ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), VMR3GetVMCPUNativeThread(pVM))) 381 381 #endif 382 382 … … 391 391 # define VM_ASSERT_EMT_RETURN(pVM, rc) \ 392 392 AssertMsgReturn(VM_IS_EMT(pVM), \ 393 ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), pVM->NativeThreadEMT), \393 ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), VMR3GetVMCPUNativeThread(pVM)), \ 394 394 (rc)) 395 #endif 396 397 398 /** @def VM_GET_VMCPUID 399 * Returns the VMCPU id of the current EMT thread. 400 */ 401 #ifdef IN_GC 402 # define VM_GET_VMCPUID(pVM) 0 403 #elif defined(IN_RING0) 404 # define VM_GET_VMCPUID(pVM) HWACCMGetVMCPUId(pVM) 405 #else 406 # define VM_GET_VMCPUID(pVM) VMR3GetVMCPUId(pVM) 395 407 #endif 396 408 … … 517 529 /** The native handle of ThreadEMT. Getting the native handle 518 530 * is generally faster than getting the IPRT one (except on OS/2 :-). */ 519 RTNATIVETHREAD NativeThreadEMT;531 RTNATIVETHREAD uPadding2; 520 532 /** @} */ 521 533 -
trunk/include/VBox/vm.mac
r13784 r13791 67 67 68 68 .uPadding1 RTHCPTR_RES 1 69 . NativeThreadEMTRTHCPTR_RES 169 .uPadding2 RTHCPTR_RES 1 70 70 71 71 .fRawR3Enabled resb 1 -
trunk/include/VBox/vmapi.h
r13782 r13791 432 432 VMMR3DECL(int) VMR3WaitHalted(PVM pVM, bool fIgnoreInterrupts); 433 433 VMMR3DECL(int) VMR3WaitU(PUVM pUVM); 434 VMMR3DECL(RTCPUID) VMR3GetVMCPUId(PVM pVM); 435 VMMR3DECL(RTTHREAD) VMR3GetVMCPUThread(PVM pVM); 436 VMMR3DECL(RTTHREAD) VMR3GetVMCPUThreadU(PUVM pUVM); 437 VMMR3DECL(RTNATIVETHREAD) VMR3GetVMCPUNativeThread(PVM pVM); 438 VMMR3DECL(RTNATIVETHREAD) VMR3GetVMCPUNativeThreadU(PUVM pUVM); 434 439 435 440 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.