Changeset 41338 in vbox for trunk/include
- Timestamp:
- May 16, 2012 2:39:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxTpG.h
r41311 r41338 164 164 /** The type context mask. */ 165 165 #define VTG_TYPE_CTX_MASK UINT32_C(0x0f000000) 166 /** The type is automatically converted to a ring-0 pointer. */ 167 #define VTG_TYPE_AUTO_CONV_PTR RT_BIT_32(28) 166 168 /** The type is a physical address. */ 167 169 #define VTG_TYPE_PHYS RT_BIT_32(29) … … 171 173 #define VTG_TYPE_SIGNED RT_BIT_32(31) 172 174 /** Mask of valid bits (for simple validation). */ 173 #define VTG_TYPE_VALID_MASK UINT32_C(0x ef000fff)175 #define VTG_TYPE_VALID_MASK UINT32_C(0xff000fff) 174 176 /** @} */ 175 177 … … 403 405 extern VTGOBJHDR g_VTGObjHeader; 404 406 407 408 /** @name Macros for converting typical pointer arguments to ring-0 pointers. 409 * @{ */ 410 #ifdef IN_RING0 411 # define VTG_VM_TO_R0(a_pVM) (a_pVM) 412 # define VTG_VMCPU_TO_R0(a_pVCpu) (a_pVCpu) 413 # define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx) (a_pCtx) 414 #else 415 # define VTG_VM_TO_R0(a_pVM) ((a_pVM)->pVMR0) 416 # define VTG_VMCPU_TO_R0(a_pVCpu) VM_R0_ADDR((a_pVCpu)->CTX_SUFF(pVM), a_pVCpu) 417 # define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx) VM_R0_ADDR((a_pVCpu)->CTX_SUFF(pVM), a_pCtx) 418 #endif 419 /** @} */ 420 421 405 422 RT_C_DECLS_END 406 423
Note:
See TracChangeset
for help on using the changeset viewer.