Changeset 42427 in vbox for trunk/include
- Timestamp:
- Jul 26, 2012 11:48:01 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79529
- Location:
- trunk/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r42420 r42427 91 91 VMMDECL(RTSEL) CPUMGetGuestTR(PVMCPU pVCpu, PCPUMSELREGHID pHidden); 92 92 VMMDECL(RTSEL) CPUMGetGuestLDTR(PVMCPU pVCpu); 93 VMMDECL(RTSEL) CPUMGetGuestLdtrEx(PVMCPU pVCpu, uint64_t *pGCPtrBase, uint32_t *pcbLimit); 93 94 VMMDECL(uint64_t) CPUMGetGuestCR0(PVMCPU pVCpu); 94 95 VMMDECL(uint64_t) CPUMGetGuestCR2(PVMCPU pVCpu); -
trunk/include/VBox/vmm/cpumctx.h
r42415 r42427 86 86 && ( (a_pSelReg)->ValidSel == (a_pSelReg)->Sel \ 87 87 || ( (a_pVCpu) /*!= NULL*/ \ 88 && (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_ RPL) \88 && (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_OFF_RPL) \ 89 89 && ((a_pSelReg)->Sel & X86_SEL_RPL) == 1 \ 90 90 && ((a_pSelReg)->ValidSel & X86_SEL_RPL) == 0 \ -
trunk/include/VBox/vmm/selm.h
r42407 r42427 80 80 VMMDECL(int) SELMValidateAndConvertCSAddr(PVMCPU pVCpu, X86EFLAGS eflags, RTSEL SelCPL, RTSEL SelCS, 81 81 PCPUMSELREG pSRegCS, RTGCPTR Addr, PRTGCPTR ppvFlat); 82 VMMDECL(int) SELMGetLDTFromSel(PVM pVM, RTSEL SelLdt, PRTGCPTR ppvLdt, unsigned *pcbLimit);83 82 #ifdef VBOX_WITH_RAW_MODE 84 83 VMM_INT_DECL(void) SELMLoadHiddenSelectorReg(PVMCPU pVCpu, PCCPUMCTX pCtx, PCPUMSELREG pSReg); -
trunk/include/iprt/x86.h
r42407 r42427 2955 2955 * The shift used to convert a selector from and to index an index (C). 2956 2956 */ 2957 #define X86_SEL_SHIFT 32957 #define X86_SEL_SHIFT 3 2958 2958 2959 2959 /** 2960 2960 * The mask used to mask off the table indicator and RPL of an selector. 2961 2961 */ 2962 #define X86_SEL_MASK 0xfff8U2962 #define X86_SEL_MASK 0xfff8U 2963 2963 2964 2964 /** 2965 2965 * The mask used to mask off the RPL of an selector. 2966 */ 2967 #define X86_SEL_MASK_RPL 0xfffcU 2966 * This is suitable for checking for NULL selectors. 2967 */ 2968 #define X86_SEL_MASK_OFF_RPL 0xfffcU 2968 2969 2969 2970 /** 2970 2971 * The bit indicating that a selector is in the LDT and not in the GDT. 2971 2972 */ 2972 #define X86_SEL_LDT 0x0004U 2973 #define X86_SEL_LDT 0x0004U 2974 2973 2975 /** 2974 2976 * The bit mask for getting the RPL of a selector. 2975 2977 */ 2976 #define X86_SEL_RPL 0x0003U 2978 #define X86_SEL_RPL 0x0003U 2979 2980 /** 2981 * The mask covering both RPL and LDT. 2982 * This is incidentally the same as sizeof(X86DESC) - 1, so good for limit 2983 * checks. 2984 */ 2985 #define X86_SEL_RPL_LDT 0x0007U 2977 2986 2978 2987 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.