- Timestamp:
- Mar 9, 2016 11:51:54 AM (9 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/x86.h
r59961 r59965 3134 3134 /** @} */ 3135 3135 3136 3137 /** @name LAR mask 3138 * @{ */ 3139 #define X86LAR_F_TYPE UINT16_C( 0x0f00) 3140 #define X86LAR_F_DT UINT16_C( 0x1000) 3141 #define X86LAR_F_DPL UINT16_C( 0x6000) 3142 #define X86LAR_F_DPL_SHIFT 13 /**< Shift count for the DPL value. */ 3143 #define X86LAR_F_P UINT16_C( 0x8000) 3144 #define X86LAR_F_AVL UINT32_C(0x10000000) 3145 #define X86LAR_F_L UINT32_C(0x20000000) 3146 #define X86LAR_F_D UINT32_C(0x40000000) 3147 #define X86LAR_F_G UINT32_C(0x80000000) 3148 /** @} */ 3149 3150 3136 3151 /** 3137 3152 * Call-, Interrupt-, Trap- or Task-gate descriptor (legacy). -
trunk/include/iprt/x86.mac
r59868 r59965 12 12 %ifndef VBOX_FOR_DTRACE_LIB 13 13 %endif 14 %define X86_EFL_CF RT_BIT (0)14 %define X86_EFL_CF RT_BIT_32(0) 15 15 %define X86_EFL_CF_BIT 0 16 %define X86_EFL_1 RT_BIT (1)17 %define X86_EFL_PF RT_BIT (2)18 %define X86_EFL_AF RT_BIT (4)16 %define X86_EFL_1 RT_BIT_32(1) 17 %define X86_EFL_PF RT_BIT_32(2) 18 %define X86_EFL_AF RT_BIT_32(4) 19 19 %define X86_EFL_AF_BIT 4 20 %define X86_EFL_ZF RT_BIT (6)20 %define X86_EFL_ZF RT_BIT_32(6) 21 21 %define X86_EFL_ZF_BIT 6 22 %define X86_EFL_SF RT_BIT (7)22 %define X86_EFL_SF RT_BIT_32(7) 23 23 %define X86_EFL_SF_BIT 7 24 %define X86_EFL_TF RT_BIT (8)25 %define X86_EFL_IF RT_BIT (9)26 %define X86_EFL_DF RT_BIT (10)27 %define X86_EFL_OF RT_BIT (11)24 %define X86_EFL_TF RT_BIT_32(8) 25 %define X86_EFL_IF RT_BIT_32(9) 26 %define X86_EFL_DF RT_BIT_32(10) 27 %define X86_EFL_OF RT_BIT_32(11) 28 28 %define X86_EFL_OF_BIT 11 29 %define X86_EFL_IOPL (RT_BIT (12) | RT_BIT(13))30 %define X86_EFL_NT RT_BIT (14)31 %define X86_EFL_RF RT_BIT (16)32 %define X86_EFL_VM RT_BIT (17)33 %define X86_EFL_AC RT_BIT (18)34 %define X86_EFL_VIF RT_BIT (19)35 %define X86_EFL_VIP RT_BIT (20)36 %define X86_EFL_ID RT_BIT (21)29 %define X86_EFL_IOPL (RT_BIT_32(12) | RT_BIT_32(13)) 30 %define X86_EFL_NT RT_BIT_32(14) 31 %define X86_EFL_RF RT_BIT_32(16) 32 %define X86_EFL_VM RT_BIT_32(17) 33 %define X86_EFL_AC RT_BIT_32(18) 34 %define X86_EFL_VIF RT_BIT_32(19) 35 %define X86_EFL_VIP RT_BIT_32(20) 36 %define X86_EFL_ID RT_BIT_32(21) 37 37 %define X86_EFL_LIVE_MASK 0x003f7fd5 38 38 %define X86_EFL_RA1_MASK RT_BIT_32(1) … … 57 57 %define X86_CPUID_VENDOR_VIA_ECX 0x736c7561 58 58 %define X86_CPUID_VENDOR_VIA_EDX 0x48727561 59 %define X86_CPUID_FEATURE_ECX_SSE3 RT_BIT (0)60 %define X86_CPUID_FEATURE_ECX_PCLMUL RT_BIT (1)61 %define X86_CPUID_FEATURE_ECX_DTES64 RT_BIT (2)62 %define X86_CPUID_FEATURE_ECX_MONITOR RT_BIT (3)63 %define X86_CPUID_FEATURE_ECX_CPLDS RT_BIT (4)64 %define X86_CPUID_FEATURE_ECX_VMX RT_BIT (5)65 %define X86_CPUID_FEATURE_ECX_SMX RT_BIT (6)66 %define X86_CPUID_FEATURE_ECX_EST RT_BIT (7)67 %define X86_CPUID_FEATURE_ECX_TM2 RT_BIT (8)68 %define X86_CPUID_FEATURE_ECX_SSSE3 RT_BIT (9)69 %define X86_CPUID_FEATURE_ECX_CNTXID RT_BIT (10)70 %define X86_CPUID_FEATURE_ECX_SDBG RT_BIT (11)71 %define X86_CPUID_FEATURE_ECX_FMA RT_BIT (12)72 %define X86_CPUID_FEATURE_ECX_CX16 RT_BIT (13)73 %define X86_CPUID_FEATURE_ECX_TPRUPDATE RT_BIT (14)74 %define X86_CPUID_FEATURE_ECX_PDCM RT_BIT (15)75 %define X86_CPUID_FEATURE_ECX_PCID RT_BIT (17)76 %define X86_CPUID_FEATURE_ECX_DCA RT_BIT (18)77 %define X86_CPUID_FEATURE_ECX_SSE4_1 RT_BIT (19)78 %define X86_CPUID_FEATURE_ECX_SSE4_2 RT_BIT (20)79 %define X86_CPUID_FEATURE_ECX_X2APIC RT_BIT (21)80 %define X86_CPUID_FEATURE_ECX_MOVBE RT_BIT (22)81 %define X86_CPUID_FEATURE_ECX_POPCNT RT_BIT (23)82 %define X86_CPUID_FEATURE_ECX_TSCDEADL RT_BIT (24)83 %define X86_CPUID_FEATURE_ECX_AES RT_BIT (25)84 %define X86_CPUID_FEATURE_ECX_XSAVE RT_BIT (26)85 %define X86_CPUID_FEATURE_ECX_OSXSAVE RT_BIT (27)86 %define X86_CPUID_FEATURE_ECX_AVX RT_BIT (28)87 %define X86_CPUID_FEATURE_ECX_F16C RT_BIT (29)88 %define X86_CPUID_FEATURE_ECX_RDRAND RT_BIT (30)89 %define X86_CPUID_FEATURE_ECX_HVP RT_BIT (31)90 %define X86_CPUID_FEATURE_EDX_FPU RT_BIT (0)91 %define X86_CPUID_FEATURE_EDX_VME RT_BIT (1)92 %define X86_CPUID_FEATURE_EDX_DE RT_BIT (2)93 %define X86_CPUID_FEATURE_EDX_PSE RT_BIT (3)94 %define X86_CPUID_FEATURE_EDX_TSC RT_BIT (4)95 %define X86_CPUID_FEATURE_EDX_MSR RT_BIT (5)96 %define X86_CPUID_FEATURE_EDX_PAE RT_BIT (6)59 %define X86_CPUID_FEATURE_ECX_SSE3 RT_BIT_32(0) 60 %define X86_CPUID_FEATURE_ECX_PCLMUL RT_BIT_32(1) 61 %define X86_CPUID_FEATURE_ECX_DTES64 RT_BIT_32(2) 62 %define X86_CPUID_FEATURE_ECX_MONITOR RT_BIT_32(3) 63 %define X86_CPUID_FEATURE_ECX_CPLDS RT_BIT_32(4) 64 %define X86_CPUID_FEATURE_ECX_VMX RT_BIT_32(5) 65 %define X86_CPUID_FEATURE_ECX_SMX RT_BIT_32(6) 66 %define X86_CPUID_FEATURE_ECX_EST RT_BIT_32(7) 67 %define X86_CPUID_FEATURE_ECX_TM2 RT_BIT_32(8) 68 %define X86_CPUID_FEATURE_ECX_SSSE3 RT_BIT_32(9) 69 %define X86_CPUID_FEATURE_ECX_CNTXID RT_BIT_32(10) 70 %define X86_CPUID_FEATURE_ECX_SDBG RT_BIT_32(11) 71 %define X86_CPUID_FEATURE_ECX_FMA RT_BIT_32(12) 72 %define X86_CPUID_FEATURE_ECX_CX16 RT_BIT_32(13) 73 %define X86_CPUID_FEATURE_ECX_TPRUPDATE RT_BIT_32(14) 74 %define X86_CPUID_FEATURE_ECX_PDCM RT_BIT_32(15) 75 %define X86_CPUID_FEATURE_ECX_PCID RT_BIT_32(17) 76 %define X86_CPUID_FEATURE_ECX_DCA RT_BIT_32(18) 77 %define X86_CPUID_FEATURE_ECX_SSE4_1 RT_BIT_32(19) 78 %define X86_CPUID_FEATURE_ECX_SSE4_2 RT_BIT_32(20) 79 %define X86_CPUID_FEATURE_ECX_X2APIC RT_BIT_32(21) 80 %define X86_CPUID_FEATURE_ECX_MOVBE RT_BIT_32(22) 81 %define X86_CPUID_FEATURE_ECX_POPCNT RT_BIT_32(23) 82 %define X86_CPUID_FEATURE_ECX_TSCDEADL RT_BIT_32(24) 83 %define X86_CPUID_FEATURE_ECX_AES RT_BIT_32(25) 84 %define X86_CPUID_FEATURE_ECX_XSAVE RT_BIT_32(26) 85 %define X86_CPUID_FEATURE_ECX_OSXSAVE RT_BIT_32(27) 86 %define X86_CPUID_FEATURE_ECX_AVX RT_BIT_32(28) 87 %define X86_CPUID_FEATURE_ECX_F16C RT_BIT_32(29) 88 %define X86_CPUID_FEATURE_ECX_RDRAND RT_BIT_32(30) 89 %define X86_CPUID_FEATURE_ECX_HVP RT_BIT_32(31) 90 %define X86_CPUID_FEATURE_EDX_FPU RT_BIT_32(0) 91 %define X86_CPUID_FEATURE_EDX_VME RT_BIT_32(1) 92 %define X86_CPUID_FEATURE_EDX_DE RT_BIT_32(2) 93 %define X86_CPUID_FEATURE_EDX_PSE RT_BIT_32(3) 94 %define X86_CPUID_FEATURE_EDX_TSC RT_BIT_32(4) 95 %define X86_CPUID_FEATURE_EDX_MSR RT_BIT_32(5) 96 %define X86_CPUID_FEATURE_EDX_PAE RT_BIT_32(6) 97 97 %define X86_CPUID_FEATURE_EDX_PAE_BIT 6 98 %define X86_CPUID_FEATURE_EDX_MCE RT_BIT (7)99 %define X86_CPUID_FEATURE_EDX_CX8 RT_BIT (8)100 %define X86_CPUID_FEATURE_EDX_APIC RT_BIT (9)101 %define X86_CPUID_FEATURE_EDX_SEP RT_BIT (11)102 %define X86_CPUID_FEATURE_EDX_MTRR RT_BIT (12)103 %define X86_CPUID_FEATURE_EDX_PGE RT_BIT (13)104 %define X86_CPUID_FEATURE_EDX_MCA RT_BIT (14)105 %define X86_CPUID_FEATURE_EDX_CMOV RT_BIT (15)106 %define X86_CPUID_FEATURE_EDX_PAT RT_BIT (16)107 %define X86_CPUID_FEATURE_EDX_PSE36 RT_BIT (17)108 %define X86_CPUID_FEATURE_EDX_PSN RT_BIT (18)109 %define X86_CPUID_FEATURE_EDX_CLFSH RT_BIT (19)110 %define X86_CPUID_FEATURE_EDX_DS RT_BIT (21)111 %define X86_CPUID_FEATURE_EDX_ACPI RT_BIT (22)112 %define X86_CPUID_FEATURE_EDX_MMX RT_BIT (23)113 %define X86_CPUID_FEATURE_EDX_FXSR RT_BIT (24)114 %define X86_CPUID_FEATURE_EDX_SSE RT_BIT (25)115 %define X86_CPUID_FEATURE_EDX_SSE2 RT_BIT (26)116 %define X86_CPUID_FEATURE_EDX_SS RT_BIT (27)117 %define X86_CPUID_FEATURE_EDX_HTT RT_BIT (28)118 %define X86_CPUID_FEATURE_EDX_TM RT_BIT (29)119 %define X86_CPUID_FEATURE_EDX_PBE RT_BIT (31)120 %define X86_CPUID_MWAIT_ECX_EXT RT_BIT (0)121 %define X86_CPUID_MWAIT_ECX_BREAKIRQIF0 RT_BIT (1)122 %define X86_CPUID_STEXT_FEATURE_EBX_FSGSBASE RT_BIT (0)123 %define X86_CPUID_STEXT_FEATURE_EBX_TSC_ADJUST RT_BIT (1)124 %define X86_CPUID_STEXT_FEATURE_EBX_BMI1 RT_BIT (3)125 %define X86_CPUID_STEXT_FEATURE_EBX_HLE RT_BIT (4)126 %define X86_CPUID_STEXT_FEATURE_EBX_AVX2 RT_BIT (5)127 %define X86_CPUID_STEXT_FEATURE_EBX_SMEP RT_BIT (7)128 %define X86_CPUID_STEXT_FEATURE_EBX_BMI2 RT_BIT (8)129 %define X86_CPUID_STEXT_FEATURE_EBX_ERMS RT_BIT (9)130 %define X86_CPUID_STEXT_FEATURE_EBX_INVPCID RT_BIT (10)131 %define X86_CPUID_STEXT_FEATURE_EBX_RTM RT_BIT (11)132 %define X86_CPUID_STEXT_FEATURE_EBX_PQM RT_BIT (12)133 %define X86_CPUID_STEXT_FEATURE_EBX_DEPR_FPU_CS_DS RT_BIT (13)134 %define X86_CPUID_STEXT_FEATURE_EBX_MPE RT_BIT (14)135 %define X86_CPUID_STEXT_FEATURE_EBX_PQE RT_BIT (15)136 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512F RT_BIT (16)137 %define X86_CPUID_STEXT_FEATURE_EBX_RDSEED RT_BIT (18)138 %define X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT (19)139 %define X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT (20)140 %define X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT RT_BIT (23)141 %define X86_CPUID_STEXT_FEATURE_EBX_INTEL_PT RT_BIT (25)142 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512PF RT_BIT (26)143 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512ER RT_BIT (27)144 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512CD RT_BIT (28)145 %define X86_CPUID_STEXT_FEATURE_EBX_SHA RT_BIT (29)146 %define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1 RT_BIT (0)147 %define X86_CPUID_EXT_FEATURE_ECX_LAHF_SAHF RT_BIT (0)148 %define X86_CPUID_EXT_FEATURE_EDX_SYSCALL RT_BIT (11)149 %define X86_CPUID_EXT_FEATURE_EDX_NX RT_BIT (20)150 %define X86_CPUID_EXT_FEATURE_EDX_PAGE1GB RT_BIT (26)151 %define X86_CPUID_EXT_FEATURE_EDX_RDTSCP RT_BIT (27)152 %define X86_CPUID_EXT_FEATURE_EDX_LONG_MODE RT_BIT (29)153 %define X86_CPUID_AMD_FEATURE_EDX_FPU RT_BIT (0)154 %define X86_CPUID_AMD_FEATURE_EDX_VME RT_BIT (1)155 %define X86_CPUID_AMD_FEATURE_EDX_DE RT_BIT (2)156 %define X86_CPUID_AMD_FEATURE_EDX_PSE RT_BIT (3)157 %define X86_CPUID_AMD_FEATURE_EDX_TSC RT_BIT (4)158 %define X86_CPUID_AMD_FEATURE_EDX_MSR RT_BIT (5)159 %define X86_CPUID_AMD_FEATURE_EDX_PAE RT_BIT (6)160 %define X86_CPUID_AMD_FEATURE_EDX_MCE RT_BIT (7)161 %define X86_CPUID_AMD_FEATURE_EDX_CX8 RT_BIT (8)162 %define X86_CPUID_AMD_FEATURE_EDX_APIC RT_BIT (9)163 %define X86_CPUID_AMD_FEATURE_EDX_MTRR RT_BIT (12)164 %define X86_CPUID_AMD_FEATURE_EDX_PGE RT_BIT (13)165 %define X86_CPUID_AMD_FEATURE_EDX_MCA RT_BIT (14)166 %define X86_CPUID_AMD_FEATURE_EDX_CMOV RT_BIT (15)167 %define X86_CPUID_AMD_FEATURE_EDX_PAT RT_BIT (16)168 %define X86_CPUID_AMD_FEATURE_EDX_PSE36 RT_BIT (17)169 %define X86_CPUID_AMD_FEATURE_EDX_AXMMX RT_BIT (22)170 %define X86_CPUID_AMD_FEATURE_EDX_MMX RT_BIT (23)171 %define X86_CPUID_AMD_FEATURE_EDX_FXSR RT_BIT (24)172 %define X86_CPUID_AMD_FEATURE_EDX_FFXSR RT_BIT (25)173 %define X86_CPUID_AMD_FEATURE_EDX_3DNOW_EX RT_BIT (30)174 %define X86_CPUID_AMD_FEATURE_EDX_3DNOW RT_BIT (31)175 %define X86_CPUID_AMD_FEATURE_ECX_CMPL RT_BIT (1)176 %define X86_CPUID_AMD_FEATURE_ECX_SVM RT_BIT (2)177 %define X86_CPUID_AMD_FEATURE_ECX_EXT_APIC RT_BIT (3)178 %define X86_CPUID_AMD_FEATURE_ECX_CR8L RT_BIT (4)179 %define X86_CPUID_AMD_FEATURE_ECX_ABM RT_BIT (5)180 %define X86_CPUID_AMD_FEATURE_ECX_SSE4A RT_BIT (6)181 %define X86_CPUID_AMD_FEATURE_ECX_MISALNSSE RT_BIT (7)182 %define X86_CPUID_AMD_FEATURE_ECX_3DNOWPRF RT_BIT (8)183 %define X86_CPUID_AMD_FEATURE_ECX_OSVW RT_BIT (9)184 %define X86_CPUID_AMD_FEATURE_ECX_IBS RT_BIT (10)185 %define X86_CPUID_AMD_FEATURE_ECX_XOP RT_BIT (11)186 %define X86_CPUID_AMD_FEATURE_ECX_SKINIT RT_BIT (12)187 %define X86_CPUID_AMD_FEATURE_ECX_WDT RT_BIT (13)188 %define X86_CPUID_AMD_FEATURE_ECX_LWP RT_BIT (15)189 %define X86_CPUID_AMD_FEATURE_ECX_FMA4 RT_BIT (16)190 %define X86_CPUID_AMD_FEATURE_ECX_NODEID RT_BIT (19)191 %define X86_CPUID_AMD_FEATURE_ECX_TBM RT_BIT (21)192 %define X86_CPUID_AMD_FEATURE_ECX_TOPOEXT RT_BIT (22)193 %define X86_CPUID_AMD_ADVPOWER_EDX_TS RT_BIT (0)194 %define X86_CPUID_AMD_ADVPOWER_EDX_FID RT_BIT (1)195 %define X86_CPUID_AMD_ADVPOWER_EDX_VID RT_BIT (2)196 %define X86_CPUID_AMD_ADVPOWER_EDX_TTP RT_BIT (3)197 %define X86_CPUID_AMD_ADVPOWER_EDX_TM RT_BIT (4)198 %define X86_CPUID_AMD_ADVPOWER_EDX_STC RT_BIT (5)199 %define X86_CPUID_AMD_ADVPOWER_EDX_MC RT_BIT (6)200 %define X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE RT_BIT (7)201 %define X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR RT_BIT (8)202 %define X86_CPUID_AMD_ADVPOWER_EDX_CPB RT_BIT (9)203 %define X86_CPUID_AMD_ADVPOWER_EDX_EFRO RT_BIT (10)204 %define X86_CPUID_AMD_ADVPOWER_EDX_PFI RT_BIT (11)205 %define X86_CPUID_AMD_ADVPOWER_EDX_PA RT_BIT (12)206 %define X86_CR0_PE RT_BIT (0)207 %define X86_CR0_PROTECTION_ENABLE RT_BIT (0)208 %define X86_CR0_MP RT_BIT (1)209 %define X86_CR0_MONITOR_COPROCESSOR RT_BIT (1)210 %define X86_CR0_EM RT_BIT (2)211 %define X86_CR0_EMULATE_FPU RT_BIT (2)212 %define X86_CR0_TS RT_BIT (3)213 %define X86_CR0_TASK_SWITCH RT_BIT (3)214 %define X86_CR0_ET RT_BIT (4)215 %define X86_CR0_EXTENSION_TYPE RT_BIT (4)216 %define X86_CR0_NE RT_BIT (5)217 %define X86_CR0_NUMERIC_ERROR RT_BIT (5)218 %define X86_CR0_WP RT_BIT (16)219 %define X86_CR0_WRITE_PROTECT RT_BIT (16)220 %define X86_CR0_AM RT_BIT (18)221 %define X86_CR0_ALIGMENT_MASK RT_BIT (18)222 %define X86_CR0_NW RT_BIT (29)223 %define X86_CR0_NOT_WRITE_THROUGH RT_BIT (29)224 %define X86_CR0_CD RT_BIT (30)225 %define X86_CR0_CACHE_DISABLE RT_BIT (30)226 %define X86_CR0_PG RT_BIT (31)227 %define X86_CR0_PAGING RT_BIT (31)228 %define X86_CR3_PWT RT_BIT (3)229 %define X86_CR3_PCD RT_BIT (4)98 %define X86_CPUID_FEATURE_EDX_MCE RT_BIT_32(7) 99 %define X86_CPUID_FEATURE_EDX_CX8 RT_BIT_32(8) 100 %define X86_CPUID_FEATURE_EDX_APIC RT_BIT_32(9) 101 %define X86_CPUID_FEATURE_EDX_SEP RT_BIT_32(11) 102 %define X86_CPUID_FEATURE_EDX_MTRR RT_BIT_32(12) 103 %define X86_CPUID_FEATURE_EDX_PGE RT_BIT_32(13) 104 %define X86_CPUID_FEATURE_EDX_MCA RT_BIT_32(14) 105 %define X86_CPUID_FEATURE_EDX_CMOV RT_BIT_32(15) 106 %define X86_CPUID_FEATURE_EDX_PAT RT_BIT_32(16) 107 %define X86_CPUID_FEATURE_EDX_PSE36 RT_BIT_32(17) 108 %define X86_CPUID_FEATURE_EDX_PSN RT_BIT_32(18) 109 %define X86_CPUID_FEATURE_EDX_CLFSH RT_BIT_32(19) 110 %define X86_CPUID_FEATURE_EDX_DS RT_BIT_32(21) 111 %define X86_CPUID_FEATURE_EDX_ACPI RT_BIT_32(22) 112 %define X86_CPUID_FEATURE_EDX_MMX RT_BIT_32(23) 113 %define X86_CPUID_FEATURE_EDX_FXSR RT_BIT_32(24) 114 %define X86_CPUID_FEATURE_EDX_SSE RT_BIT_32(25) 115 %define X86_CPUID_FEATURE_EDX_SSE2 RT_BIT_32(26) 116 %define X86_CPUID_FEATURE_EDX_SS RT_BIT_32(27) 117 %define X86_CPUID_FEATURE_EDX_HTT RT_BIT_32(28) 118 %define X86_CPUID_FEATURE_EDX_TM RT_BIT_32(29) 119 %define X86_CPUID_FEATURE_EDX_PBE RT_BIT_32(31) 120 %define X86_CPUID_MWAIT_ECX_EXT RT_BIT_32(0) 121 %define X86_CPUID_MWAIT_ECX_BREAKIRQIF0 RT_BIT_32(1) 122 %define X86_CPUID_STEXT_FEATURE_EBX_FSGSBASE RT_BIT_32(0) 123 %define X86_CPUID_STEXT_FEATURE_EBX_TSC_ADJUST RT_BIT_32(1) 124 %define X86_CPUID_STEXT_FEATURE_EBX_BMI1 RT_BIT_32(3) 125 %define X86_CPUID_STEXT_FEATURE_EBX_HLE RT_BIT_32(4) 126 %define X86_CPUID_STEXT_FEATURE_EBX_AVX2 RT_BIT_32(5) 127 %define X86_CPUID_STEXT_FEATURE_EBX_SMEP RT_BIT_32(7) 128 %define X86_CPUID_STEXT_FEATURE_EBX_BMI2 RT_BIT_32(8) 129 %define X86_CPUID_STEXT_FEATURE_EBX_ERMS RT_BIT_32(9) 130 %define X86_CPUID_STEXT_FEATURE_EBX_INVPCID RT_BIT_32(10) 131 %define X86_CPUID_STEXT_FEATURE_EBX_RTM RT_BIT_32(11) 132 %define X86_CPUID_STEXT_FEATURE_EBX_PQM RT_BIT_32(12) 133 %define X86_CPUID_STEXT_FEATURE_EBX_DEPR_FPU_CS_DS RT_BIT_32(13) 134 %define X86_CPUID_STEXT_FEATURE_EBX_MPE RT_BIT_32(14) 135 %define X86_CPUID_STEXT_FEATURE_EBX_PQE RT_BIT_32(15) 136 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512F RT_BIT_32(16) 137 %define X86_CPUID_STEXT_FEATURE_EBX_RDSEED RT_BIT_32(18) 138 %define X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT_32(19) 139 %define X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT_32(20) 140 %define X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT RT_BIT_32(23) 141 %define X86_CPUID_STEXT_FEATURE_EBX_INTEL_PT RT_BIT_32(25) 142 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512PF RT_BIT_32(26) 143 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512ER RT_BIT_32(27) 144 %define X86_CPUID_STEXT_FEATURE_EBX_AVX512CD RT_BIT_32(28) 145 %define X86_CPUID_STEXT_FEATURE_EBX_SHA RT_BIT_32(29) 146 %define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1 RT_BIT_32(0) 147 %define X86_CPUID_EXT_FEATURE_ECX_LAHF_SAHF RT_BIT_32(0) 148 %define X86_CPUID_EXT_FEATURE_EDX_SYSCALL RT_BIT_32(11) 149 %define X86_CPUID_EXT_FEATURE_EDX_NX RT_BIT_32(20) 150 %define X86_CPUID_EXT_FEATURE_EDX_PAGE1GB RT_BIT_32(26) 151 %define X86_CPUID_EXT_FEATURE_EDX_RDTSCP RT_BIT_32(27) 152 %define X86_CPUID_EXT_FEATURE_EDX_LONG_MODE RT_BIT_32(29) 153 %define X86_CPUID_AMD_FEATURE_EDX_FPU RT_BIT_32(0) 154 %define X86_CPUID_AMD_FEATURE_EDX_VME RT_BIT_32(1) 155 %define X86_CPUID_AMD_FEATURE_EDX_DE RT_BIT_32(2) 156 %define X86_CPUID_AMD_FEATURE_EDX_PSE RT_BIT_32(3) 157 %define X86_CPUID_AMD_FEATURE_EDX_TSC RT_BIT_32(4) 158 %define X86_CPUID_AMD_FEATURE_EDX_MSR RT_BIT_32(5) 159 %define X86_CPUID_AMD_FEATURE_EDX_PAE RT_BIT_32(6) 160 %define X86_CPUID_AMD_FEATURE_EDX_MCE RT_BIT_32(7) 161 %define X86_CPUID_AMD_FEATURE_EDX_CX8 RT_BIT_32(8) 162 %define X86_CPUID_AMD_FEATURE_EDX_APIC RT_BIT_32(9) 163 %define X86_CPUID_AMD_FEATURE_EDX_MTRR RT_BIT_32(12) 164 %define X86_CPUID_AMD_FEATURE_EDX_PGE RT_BIT_32(13) 165 %define X86_CPUID_AMD_FEATURE_EDX_MCA RT_BIT_32(14) 166 %define X86_CPUID_AMD_FEATURE_EDX_CMOV RT_BIT_32(15) 167 %define X86_CPUID_AMD_FEATURE_EDX_PAT RT_BIT_32(16) 168 %define X86_CPUID_AMD_FEATURE_EDX_PSE36 RT_BIT_32(17) 169 %define X86_CPUID_AMD_FEATURE_EDX_AXMMX RT_BIT_32(22) 170 %define X86_CPUID_AMD_FEATURE_EDX_MMX RT_BIT_32(23) 171 %define X86_CPUID_AMD_FEATURE_EDX_FXSR RT_BIT_32(24) 172 %define X86_CPUID_AMD_FEATURE_EDX_FFXSR RT_BIT_32(25) 173 %define X86_CPUID_AMD_FEATURE_EDX_3DNOW_EX RT_BIT_32(30) 174 %define X86_CPUID_AMD_FEATURE_EDX_3DNOW RT_BIT_32(31) 175 %define X86_CPUID_AMD_FEATURE_ECX_CMPL RT_BIT_32(1) 176 %define X86_CPUID_AMD_FEATURE_ECX_SVM RT_BIT_32(2) 177 %define X86_CPUID_AMD_FEATURE_ECX_EXT_APIC RT_BIT_32(3) 178 %define X86_CPUID_AMD_FEATURE_ECX_CR8L RT_BIT_32(4) 179 %define X86_CPUID_AMD_FEATURE_ECX_ABM RT_BIT_32(5) 180 %define X86_CPUID_AMD_FEATURE_ECX_SSE4A RT_BIT_32(6) 181 %define X86_CPUID_AMD_FEATURE_ECX_MISALNSSE RT_BIT_32(7) 182 %define X86_CPUID_AMD_FEATURE_ECX_3DNOWPRF RT_BIT_32(8) 183 %define X86_CPUID_AMD_FEATURE_ECX_OSVW RT_BIT_32(9) 184 %define X86_CPUID_AMD_FEATURE_ECX_IBS RT_BIT_32(10) 185 %define X86_CPUID_AMD_FEATURE_ECX_XOP RT_BIT_32(11) 186 %define X86_CPUID_AMD_FEATURE_ECX_SKINIT RT_BIT_32(12) 187 %define X86_CPUID_AMD_FEATURE_ECX_WDT RT_BIT_32(13) 188 %define X86_CPUID_AMD_FEATURE_ECX_LWP RT_BIT_32(15) 189 %define X86_CPUID_AMD_FEATURE_ECX_FMA4 RT_BIT_32(16) 190 %define X86_CPUID_AMD_FEATURE_ECX_NODEID RT_BIT_32(19) 191 %define X86_CPUID_AMD_FEATURE_ECX_TBM RT_BIT_32(21) 192 %define X86_CPUID_AMD_FEATURE_ECX_TOPOEXT RT_BIT_32(22) 193 %define X86_CPUID_AMD_ADVPOWER_EDX_TS RT_BIT_32(0) 194 %define X86_CPUID_AMD_ADVPOWER_EDX_FID RT_BIT_32(1) 195 %define X86_CPUID_AMD_ADVPOWER_EDX_VID RT_BIT_32(2) 196 %define X86_CPUID_AMD_ADVPOWER_EDX_TTP RT_BIT_32(3) 197 %define X86_CPUID_AMD_ADVPOWER_EDX_TM RT_BIT_32(4) 198 %define X86_CPUID_AMD_ADVPOWER_EDX_STC RT_BIT_32(5) 199 %define X86_CPUID_AMD_ADVPOWER_EDX_MC RT_BIT_32(6) 200 %define X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE RT_BIT_32(7) 201 %define X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR RT_BIT_32(8) 202 %define X86_CPUID_AMD_ADVPOWER_EDX_CPB RT_BIT_32(9) 203 %define X86_CPUID_AMD_ADVPOWER_EDX_EFRO RT_BIT_32(10) 204 %define X86_CPUID_AMD_ADVPOWER_EDX_PFI RT_BIT_32(11) 205 %define X86_CPUID_AMD_ADVPOWER_EDX_PA RT_BIT_32(12) 206 %define X86_CR0_PE RT_BIT_32(0) 207 %define X86_CR0_PROTECTION_ENABLE RT_BIT_32(0) 208 %define X86_CR0_MP RT_BIT_32(1) 209 %define X86_CR0_MONITOR_COPROCESSOR RT_BIT_32(1) 210 %define X86_CR0_EM RT_BIT_32(2) 211 %define X86_CR0_EMULATE_FPU RT_BIT_32(2) 212 %define X86_CR0_TS RT_BIT_32(3) 213 %define X86_CR0_TASK_SWITCH RT_BIT_32(3) 214 %define X86_CR0_ET RT_BIT_32(4) 215 %define X86_CR0_EXTENSION_TYPE RT_BIT_32(4) 216 %define X86_CR0_NE RT_BIT_32(5) 217 %define X86_CR0_NUMERIC_ERROR RT_BIT_32(5) 218 %define X86_CR0_WP RT_BIT_32(16) 219 %define X86_CR0_WRITE_PROTECT RT_BIT_32(16) 220 %define X86_CR0_AM RT_BIT_32(18) 221 %define X86_CR0_ALIGMENT_MASK RT_BIT_32(18) 222 %define X86_CR0_NW RT_BIT_32(29) 223 %define X86_CR0_NOT_WRITE_THROUGH RT_BIT_32(29) 224 %define X86_CR0_CD RT_BIT_32(30) 225 %define X86_CR0_CACHE_DISABLE RT_BIT_32(30) 226 %define X86_CR0_PG RT_BIT_32(31) 227 %define X86_CR0_PAGING RT_BIT_32(31) 228 %define X86_CR3_PWT RT_BIT_32(3) 229 %define X86_CR3_PCD RT_BIT_32(4) 230 230 %define X86_CR3_PAGE_MASK (0xfffff000) 231 231 %define X86_CR3_PAE_PAGE_MASK (0xffffffe0) 232 232 %define X86_CR3_AMD64_PAGE_MASK 0x000ffffffffff000 233 %define X86_CR4_VME RT_BIT (0)234 %define X86_CR4_PVI RT_BIT (1)235 %define X86_CR4_TSD RT_BIT (2)236 %define X86_CR4_DE RT_BIT (3)237 %define X86_CR4_PSE RT_BIT (4)238 %define X86_CR4_PAE RT_BIT (5)239 %define X86_CR4_MCE RT_BIT (6)240 %define X86_CR4_PGE RT_BIT (7)241 %define X86_CR4_PCE RT_BIT (8)242 %define X86_CR4_OSFXSR RT_BIT (9)243 %define X86_CR4_OSXMMEEXCPT RT_BIT (10)244 %define X86_CR4_VMXE RT_BIT (13)245 %define X86_CR4_SMXE RT_BIT (14)246 %define X86_CR4_PCIDE RT_BIT (17)247 %define X86_CR4_OSXSAVE RT_BIT (18)248 %define X86_CR4_SMEP RT_BIT (20)249 %define X86_CR4_SMAP RT_BIT (21)250 %define X86_CR4_PKE RT_BIT (22)251 %define X86_DR6_B0 RT_BIT (0)252 %define X86_DR6_B1 RT_BIT (1)253 %define X86_DR6_B2 RT_BIT (2)254 %define X86_DR6_B3 RT_BIT (3)233 %define X86_CR4_VME RT_BIT_32(0) 234 %define X86_CR4_PVI RT_BIT_32(1) 235 %define X86_CR4_TSD RT_BIT_32(2) 236 %define X86_CR4_DE RT_BIT_32(3) 237 %define X86_CR4_PSE RT_BIT_32(4) 238 %define X86_CR4_PAE RT_BIT_32(5) 239 %define X86_CR4_MCE RT_BIT_32(6) 240 %define X86_CR4_PGE RT_BIT_32(7) 241 %define X86_CR4_PCE RT_BIT_32(8) 242 %define X86_CR4_OSFXSR RT_BIT_32(9) 243 %define X86_CR4_OSXMMEEXCPT RT_BIT_32(10) 244 %define X86_CR4_VMXE RT_BIT_32(13) 245 %define X86_CR4_SMXE RT_BIT_32(14) 246 %define X86_CR4_PCIDE RT_BIT_32(17) 247 %define X86_CR4_OSXSAVE RT_BIT_32(18) 248 %define X86_CR4_SMEP RT_BIT_32(20) 249 %define X86_CR4_SMAP RT_BIT_32(21) 250 %define X86_CR4_PKE RT_BIT_32(22) 251 %define X86_DR6_B0 RT_BIT_32(0) 252 %define X86_DR6_B1 RT_BIT_32(1) 253 %define X86_DR6_B2 RT_BIT_32(2) 254 %define X86_DR6_B3 RT_BIT_32(3) 255 255 %define X86_DR6_B_MASK 0x0000000f 256 %define X86_DR6_BD RT_BIT (13)257 %define X86_DR6_BS RT_BIT (14)258 %define X86_DR6_BT RT_BIT (15)256 %define X86_DR6_BD RT_BIT_32(13) 257 %define X86_DR6_BS RT_BIT_32(14) 258 %define X86_DR6_BT RT_BIT_32(15) 259 259 %define X86_DR6_INIT_VAL 0xFFFF0FF0 260 260 %define X86_DR6_RA1_MASK 0xffff0ff0 … … 262 262 %define X86_DR6_MBZ_MASK 0xffffffff00000000 263 263 %define X86_DR6_B(iBp) RT_BIT_64(iBp) 264 %define X86_DR7_L0 RT_BIT (0)265 %define X86_DR7_G0 RT_BIT (1)266 %define X86_DR7_L1 RT_BIT (2)267 %define X86_DR7_G1 RT_BIT (3)268 %define X86_DR7_L2 RT_BIT (4)269 %define X86_DR7_G2 RT_BIT (5)270 %define X86_DR7_L3 RT_BIT (6)271 %define X86_DR7_G3 RT_BIT (7)272 %define X86_DR7_LE RT_BIT (8)273 %define X86_DR7_GE RT_BIT (9)264 %define X86_DR7_L0 RT_BIT_32(0) 265 %define X86_DR7_G0 RT_BIT_32(1) 266 %define X86_DR7_L1 RT_BIT_32(2) 267 %define X86_DR7_G1 RT_BIT_32(3) 268 %define X86_DR7_L2 RT_BIT_32(4) 269 %define X86_DR7_G2 RT_BIT_32(5) 270 %define X86_DR7_L3 RT_BIT_32(6) 271 %define X86_DR7_G3 RT_BIT_32(7) 272 %define X86_DR7_LE RT_BIT_32(8) 273 %define X86_DR7_GE RT_BIT_32(9) 274 274 %define X86_DR7_LE_ALL 0x0000000000000055 275 275 %define X86_DR7_GE_ALL 0x00000000000000aa 276 %define X86_DR7_ICE_IR RT_BIT (12)277 %define X86_DR7_GD RT_BIT (13)278 %define X86_DR7_ICE_TR1 RT_BIT (14)279 %define X86_DR7_ICE_TR2 RT_BIT (15)276 %define X86_DR7_ICE_IR RT_BIT_32(12) 277 %define X86_DR7_GD RT_BIT_32(13) 278 %define X86_DR7_ICE_TR1 RT_BIT_32(14) 279 %define X86_DR7_ICE_TR2 RT_BIT_32(15) 280 280 %define X86_DR7_RW0_MASK (3 << 16) 281 281 %define X86_DR7_LEN0_MASK (3 << 18) … … 286 286 %define X86_DR7_RW3_MASK (3 << 28) 287 287 %define X86_DR7_LEN3_MASK (3 << 30) 288 %define X86_DR7_RA1_MASK (RT_BIT(10))288 %define X86_DR7_RA1_MASK RT_BIT_32(10) 289 289 %define X86_DR7_RAZ_MASK 0x0000d800 290 290 %define X86_DR7_MBZ_MASK 0xffffffff00000000 … … 329 329 %define MSR_CORE_THREAD_COUNT 0x35 330 330 %define MSR_IA32_FEATURE_CONTROL 0x3A 331 %define MSR_IA32_FEATURE_CONTROL_LOCK RT_BIT (0)332 %define MSR_IA32_FEATURE_CONTROL_SMX_VMXON RT_BIT (1)333 %define MSR_IA32_FEATURE_CONTROL_VMXON RT_BIT (2)331 %define MSR_IA32_FEATURE_CONTROL_LOCK RT_BIT_32(0) 332 %define MSR_IA32_FEATURE_CONTROL_SMX_VMXON RT_BIT_32(1) 333 %define MSR_IA32_FEATURE_CONTROL_VMXON RT_BIT_32(2) 334 334 %define MSR_IA32_TSC_ADJUST 0x3B 335 335 %define MSR_IA32_BIOS_UPDT_TRIG 0x79 … … 430 430 %define MSR_RAPL_POWER_UNIT 0x606 431 431 %define MSR_IA32_X2APIC_START 0x800 432 %define MSR_IA32_X2APIC_ID 0x802 433 %define MSR_IA32_X2APIC_VERSION 0x803 432 434 %define MSR_IA32_X2APIC_TPR 0x808 435 %define MSR_IA32_X2APIC_PPR 0x80A 436 %define MSR_IA32_X2APIC_EOI 0x80B 437 %define MSR_IA32_X2APIC_LDR 0x80D 438 %define MSR_IA32_X2APIC_SVR 0x80F 439 %define MSR_IA32_X2APIC_ISR0 0x810 440 %define MSR_IA32_X2APIC_ISR1 0x811 441 %define MSR_IA32_X2APIC_ISR2 0x812 442 %define MSR_IA32_X2APIC_ISR3 0x813 443 %define MSR_IA32_X2APIC_ISR4 0x814 444 %define MSR_IA32_X2APIC_ISR5 0x815 445 %define MSR_IA32_X2APIC_ISR6 0x816 446 %define MSR_IA32_X2APIC_ISR7 0x817 447 %define MSR_IA32_X2APIC_TMR0 0x818 448 %define MSR_IA32_X2APIC_TMR1 0x819 449 %define MSR_IA32_X2APIC_TMR2 0x81A 450 %define MSR_IA32_X2APIC_TMR3 0x81B 451 %define MSR_IA32_X2APIC_TMR4 0x81C 452 %define MSR_IA32_X2APIC_TMR5 0x81D 453 %define MSR_IA32_X2APIC_TMR6 0x81E 454 %define MSR_IA32_X2APIC_TMR7 0x81F 455 %define MSR_IA32_X2APIC_IRR0 0x820 456 %define MSR_IA32_X2APIC_IRR1 0x821 457 %define MSR_IA32_X2APIC_IRR2 0x822 458 %define MSR_IA32_X2APIC_IRR3 0x823 459 %define MSR_IA32_X2APIC_IRR4 0x824 460 %define MSR_IA32_X2APIC_IRR5 0x825 461 %define MSR_IA32_X2APIC_IRR6 0x826 462 %define MSR_IA32_X2APIC_IRR7 0x827 463 %define MSR_IA32_X2APIC_ESR 0x828 464 %define MSR_IA32_X2APIC_LVT_CMCI 0x82F 465 %define MSR_IA32_X2APIC_ICR 0x830 466 %define MSR_IA32_X2APIC_LVT_TIMER 0x832 467 %define MSR_IA32_X2APIC_LVT_THERMAL 0x833 468 %define MSR_IA32_X2APIC_LVT_PERF 0x834 469 %define MSR_IA32_X2APIC_LVT_LINT0 0x835 470 %define MSR_IA32_X2APIC_LVT_LINT1 0x836 471 %define MSR_IA32_X2APIC_LVT_ERROR 0x837 472 %define MSR_IA32_X2APIC_TIMER_ICR 0x838 473 %define MSR_IA32_X2APIC_TIMER_CCR 0x839 474 %define MSR_IA32_X2APIC_TIMER_DFR 0x83E 475 %define MSR_IA32_X2APIC_SELF_IPI 0x83F 433 476 %define MSR_IA32_X2APIC_END 0xBFF 434 477 %define MSR_K6_EFER 0xc0000080 435 %define MSR_K6_EFER_SCE RT_BIT (0)436 %define MSR_K6_EFER_LME RT_BIT (8)437 %define MSR_K6_EFER_LMA RT_BIT (10)438 %define MSR_K6_EFER_NXE RT_BIT (11)439 %define MSR_K6_EFER_SVME RT_BIT (12)440 %define MSR_K6_EFER_LMSLE RT_BIT (13)441 %define MSR_K6_EFER_FFXSR RT_BIT (14)442 %define MSR_K6_EFER_TCE RT_BIT (15)478 %define MSR_K6_EFER_SCE RT_BIT_32(0) 479 %define MSR_K6_EFER_LME RT_BIT_32(8) 480 %define MSR_K6_EFER_LMA RT_BIT_32(10) 481 %define MSR_K6_EFER_NXE RT_BIT_32(11) 482 %define MSR_K6_EFER_SVME RT_BIT_32(12) 483 %define MSR_K6_EFER_LMSLE RT_BIT_32(13) 484 %define MSR_K6_EFER_FFXSR RT_BIT_32(14) 485 %define MSR_K6_EFER_TCE RT_BIT_32(15) 443 486 %define MSR_K6_STAR 0xc0000081 444 487 %define MSR_K6_STAR_SYSRET_CS_SS_SHIFT 48 … … 476 519 %define MSR_K8_INT_PENDING 0xc0010055 477 520 %define MSR_K8_VM_CR 0xc0010114 478 %define MSR_K8_VM_CR_SVM_DISABLE RT_BIT (4)521 %define MSR_K8_VM_CR_SVM_DISABLE RT_BIT_32(4) 479 522 %define MSR_K8_IGNNE 0xc0010115 480 523 %define MSR_K8_SMM_CTL 0xc0010116 … … 510 553 %define X86_PTE_BIT_PAT 7 511 554 %define X86_PTE_BIT_G 8 512 %define X86_PTE_P RT_BIT (0)513 %define X86_PTE_RW RT_BIT (1)514 %define X86_PTE_US RT_BIT (2)515 %define X86_PTE_PWT RT_BIT (3)516 %define X86_PTE_PCD RT_BIT (4)517 %define X86_PTE_A RT_BIT (5)518 %define X86_PTE_D RT_BIT (6)519 %define X86_PTE_PAT RT_BIT (7)520 %define X86_PTE_G RT_BIT (8)521 %define X86_PTE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))555 %define X86_PTE_P RT_BIT_32(0) 556 %define X86_PTE_RW RT_BIT_32(1) 557 %define X86_PTE_US RT_BIT_32(2) 558 %define X86_PTE_PWT RT_BIT_32(3) 559 %define X86_PTE_PCD RT_BIT_32(4) 560 %define X86_PTE_A RT_BIT_32(5) 561 %define X86_PTE_D RT_BIT_32(6) 562 %define X86_PTE_PAT RT_BIT_32(7) 563 %define X86_PTE_G RT_BIT_32(8) 564 %define X86_PTE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 522 565 %define X86_PTE_PG_MASK ( 0xfffff000 ) 523 566 %define X86_PTE_PAE_PG_MASK 0x000ffffffffff000 … … 543 586 %define X86_PT_PAE_SHIFT 12 544 587 %define X86_PT_PAE_MASK 0x1ff 545 %define X86_PDE_P RT_BIT (0)546 %define X86_PDE_RW RT_BIT (1)547 %define X86_PDE_US RT_BIT (2)548 %define X86_PDE_PWT RT_BIT (3)549 %define X86_PDE_PCD RT_BIT (4)550 %define X86_PDE_A RT_BIT (5)551 %define X86_PDE_PS RT_BIT (7)552 %define X86_PDE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))588 %define X86_PDE_P RT_BIT_32(0) 589 %define X86_PDE_RW RT_BIT_32(1) 590 %define X86_PDE_US RT_BIT_32(2) 591 %define X86_PDE_PWT RT_BIT_32(3) 592 %define X86_PDE_PCD RT_BIT_32(4) 593 %define X86_PDE_A RT_BIT_32(5) 594 %define X86_PDE_PS RT_BIT_32(7) 595 %define X86_PDE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 553 596 %define X86_PDE_PG_MASK ( 0xfffff000 ) 554 597 %define X86_PDE_PAE_PG_MASK 0x000ffffffffff000 … … 562 605 %ifndef VBOX_FOR_DTRACE_LIB 563 606 %endif 564 %define X86_PDE4M_P RT_BIT (0)565 %define X86_PDE4M_RW RT_BIT (1)566 %define X86_PDE4M_US RT_BIT (2)567 %define X86_PDE4M_PWT RT_BIT (3)568 %define X86_PDE4M_PCD RT_BIT (4)569 %define X86_PDE4M_A RT_BIT (5)570 %define X86_PDE4M_D RT_BIT (6)571 %define X86_PDE4M_PS RT_BIT (7)572 %define X86_PDE4M_G RT_BIT (8)573 %define X86_PDE4M_AVL (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))574 %define X86_PDE4M_PAT RT_BIT (12)607 %define X86_PDE4M_P RT_BIT_32(0) 608 %define X86_PDE4M_RW RT_BIT_32(1) 609 %define X86_PDE4M_US RT_BIT_32(2) 610 %define X86_PDE4M_PWT RT_BIT_32(3) 611 %define X86_PDE4M_PCD RT_BIT_32(4) 612 %define X86_PDE4M_A RT_BIT_32(5) 613 %define X86_PDE4M_D RT_BIT_32(6) 614 %define X86_PDE4M_PS RT_BIT_32(7) 615 %define X86_PDE4M_G RT_BIT_32(8) 616 %define X86_PDE4M_AVL (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 617 %define X86_PDE4M_PAT RT_BIT_32(12) 575 618 %define X86_PDE4M_PAT_SHIFT (12 - 7) 576 619 %define X86_PDE4M_PG_MASK ( 0xffc00000 ) … … 600 643 %define X86_PD_PAE_SHIFT 21 601 644 %define X86_PD_PAE_MASK 0x1ff 602 %define X86_PDPE_P RT_BIT (0)603 %define X86_PDPE_RW RT_BIT (1)604 %define X86_PDPE_US RT_BIT (2)605 %define X86_PDPE_PWT RT_BIT (3)606 %define X86_PDPE_PCD RT_BIT (4)607 %define X86_PDPE_A RT_BIT (5)608 %define X86_PDPE_LM_PS RT_BIT (7)609 %define X86_PDPE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))645 %define X86_PDPE_P RT_BIT_32(0) 646 %define X86_PDPE_RW RT_BIT_32(1) 647 %define X86_PDPE_US RT_BIT_32(2) 648 %define X86_PDPE_PWT RT_BIT_32(3) 649 %define X86_PDPE_PCD RT_BIT_32(4) 650 %define X86_PDPE_A RT_BIT_32(5) 651 %define X86_PDPE_LM_PS RT_BIT_32(7) 652 %define X86_PDPE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 610 653 %define X86_PDPE_PG_MASK 0x000ffffffffff000 611 654 %define X86_PDPE_PAE_MBZ_MASK 0xfff00000000001e6 … … 626 669 %define X86_PDPT_MASK_PAE 0x3 627 670 %define X86_PDPT_MASK_AMD64 0x1ff 628 %define X86_PML4E_P RT_BIT (0)629 %define X86_PML4E_RW RT_BIT (1)630 %define X86_PML4E_US RT_BIT (2)631 %define X86_PML4E_PWT RT_BIT (3)632 %define X86_PML4E_PCD RT_BIT (4)633 %define X86_PML4E_A RT_BIT (5)634 %define X86_PML4E_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))671 %define X86_PML4E_P RT_BIT_32(0) 672 %define X86_PML4E_RW RT_BIT_32(1) 673 %define X86_PML4E_US RT_BIT_32(2) 674 %define X86_PML4E_PWT RT_BIT_32(3) 675 %define X86_PML4E_PCD RT_BIT_32(4) 676 %define X86_PML4E_A RT_BIT_32(5) 677 %define X86_PML4E_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 635 678 %define X86_PML4E_PG_MASK 0x000ffffffffff000 636 679 %define X86_PML4E_MBZ_MASK_NX 0x0000000000000080 … … 659 702 %ifndef VBOX_FOR_DTRACE_LIB 660 703 %endif 661 %define X86_FSW_IE RT_BIT (0)662 %define X86_FSW_DE RT_BIT (1)663 %define X86_FSW_ZE RT_BIT (2)664 %define X86_FSW_OE RT_BIT (3)665 %define X86_FSW_UE RT_BIT (4)666 %define X86_FSW_PE RT_BIT (5)667 %define X86_FSW_SF RT_BIT (6)668 %define X86_FSW_ES RT_BIT (7)704 %define X86_FSW_IE RT_BIT_32(0) 705 %define X86_FSW_DE RT_BIT_32(1) 706 %define X86_FSW_ZE RT_BIT_32(2) 707 %define X86_FSW_OE RT_BIT_32(3) 708 %define X86_FSW_UE RT_BIT_32(4) 709 %define X86_FSW_PE RT_BIT_32(5) 710 %define X86_FSW_SF RT_BIT_32(6) 711 %define X86_FSW_ES RT_BIT_32(7) 669 712 %define X86_FSW_XCPT_MASK 0x007f 670 713 %define X86_FSW_XCPT_ES_MASK 0x00ff 671 %define X86_FSW_C0 RT_BIT (8)672 %define X86_FSW_C1 RT_BIT (9)673 %define X86_FSW_C2 RT_BIT (10)714 %define X86_FSW_C0 RT_BIT_32(8) 715 %define X86_FSW_C1 RT_BIT_32(9) 716 %define X86_FSW_C2 RT_BIT_32(10) 674 717 %define X86_FSW_TOP_MASK 0x3800 675 718 %define X86_FSW_TOP_SHIFT 11 676 719 %define X86_FSW_TOP_SMASK 0x0007 677 720 %define X86_FSW_TOP_GET(a_uFsw) (((a_uFsw) >> X86_FSW_TOP_SHIFT) & X86_FSW_TOP_SMASK) 678 %define X86_FSW_C3 RT_BIT (14)721 %define X86_FSW_C3 RT_BIT_32(14) 679 722 %define X86_FSW_C_MASK 0x4700 680 %define X86_FSW_B RT_BIT (15)681 %define X86_FCW_IM RT_BIT (0)682 %define X86_FCW_DM RT_BIT (1)683 %define X86_FCW_ZM RT_BIT (2)684 %define X86_FCW_OM RT_BIT (3)685 %define X86_FCW_UM RT_BIT (4)686 %define X86_FCW_PM RT_BIT (5)723 %define X86_FSW_B RT_BIT_32(15) 724 %define X86_FCW_IM RT_BIT_32(0) 725 %define X86_FCW_DM RT_BIT_32(1) 726 %define X86_FCW_ZM RT_BIT_32(2) 727 %define X86_FCW_OM RT_BIT_32(3) 728 %define X86_FCW_UM RT_BIT_32(4) 729 %define X86_FCW_PM RT_BIT_32(5) 687 730 %define X86_FCW_MASK_ALL 0x007f 688 731 %define X86_FCW_XCPT_MASK 0x003f … … 698 741 %define X86_FCW_RC_ZERO 0x0c00 699 742 %define X86_FCW_ZERO_MASK 0xf080 700 %define X86_MXSCR_IE RT_BIT (0)701 %define X86_MXSCR_DE RT_BIT (1)702 %define X86_MXSCR_ZE RT_BIT (2)703 %define X86_MXSCR_OE RT_BIT (3)704 %define X86_MXSCR_UE RT_BIT (4)705 %define X86_MXSCR_PE RT_BIT (5)706 %define X86_MXSCR_DAZ RT_BIT (6)707 %define X86_MXSCR_IM RT_BIT (7)708 %define X86_MXSCR_DM RT_BIT (8)709 %define X86_MXSCR_ZM RT_BIT (9)710 %define X86_MXSCR_OM RT_BIT (10)711 %define X86_MXSCR_UM RT_BIT (11)712 %define X86_MXSCR_PM RT_BIT (12)743 %define X86_MXSCR_IE RT_BIT_32(0) 744 %define X86_MXSCR_DE RT_BIT_32(1) 745 %define X86_MXSCR_ZE RT_BIT_32(2) 746 %define X86_MXSCR_OE RT_BIT_32(3) 747 %define X86_MXSCR_UE RT_BIT_32(4) 748 %define X86_MXSCR_PE RT_BIT_32(5) 749 %define X86_MXSCR_DAZ RT_BIT_32(6) 750 %define X86_MXSCR_IM RT_BIT_32(7) 751 %define X86_MXSCR_DM RT_BIT_32(8) 752 %define X86_MXSCR_ZM RT_BIT_32(9) 753 %define X86_MXSCR_OM RT_BIT_32(10) 754 %define X86_MXSCR_UM RT_BIT_32(11) 755 %define X86_MXSCR_PM RT_BIT_32(12) 713 756 %define X86_MXSCR_RC_MASK 0x6000 714 757 %define X86_MXSCR_RC_NEAREST 0x0000 … … 716 759 %define X86_MXSCR_RC_UP 0x4000 717 760 %define X86_MXSCR_RC_ZERO 0x6000 718 %define X86_MXSCR_FZ RT_BIT (15)719 %define X86_MXSCR_MM RT_BIT (17)761 %define X86_MXSCR_FZ RT_BIT_32(15) 762 %define X86_MXSCR_MM RT_BIT_32(17) 720 763 %ifndef VBOX_FOR_DTRACE_LIB 721 764 %endif … … 785 828 %define X86DESCGENERIC_BIT_OFF_GRANULARITY (55) 786 829 %define X86DESCGENERIC_BIT_OFF_BASE_HIGH2 (56) 830 %define X86LAR_F_TYPE 0x0f00 831 %define X86LAR_F_DT 0x1000 832 %define X86LAR_F_DPL 0x6000 833 %define X86LAR_F_DPL_SHIFT 13 834 %define X86LAR_F_P 0x8000 835 %define X86LAR_F_AVL 0x10000000 836 %define X86LAR_F_L 0x20000000 837 %define X86LAR_F_D 0x40000000 838 %define X86LAR_F_G 0x80000000 787 839 %endif 788 840 %ifndef VBOX_FOR_DTRACE_LIB … … 806 858 %endif 807 859 %define X86_SEL_TYPE_CODE 8 808 %define X86_SEL_TYPE_MEMORY RT_BIT (4)860 %define X86_SEL_TYPE_MEMORY RT_BIT_32(4) 809 861 %define X86_SEL_TYPE_ACCESSED 1 810 862 %define X86_SEL_TYPE_DOWN 4 … … 852 904 %define AMD64_SEL_TYPE_SYS_INT_GATE 0xE 853 905 %define AMD64_SEL_TYPE_SYS_TRAP_GATE 0xF 854 %define X86_DESC_TYPE_MASK (RT_BIT (8) | RT_BIT(9) | RT_BIT(10) | RT_BIT(11))855 %define X86_DESC_S RT_BIT (12)856 %define X86_DESC_DPL (RT_BIT (13) | RT_BIT(14))857 %define X86_DESC_P RT_BIT (15)858 %define X86_DESC_AVL RT_BIT (20)859 %define X86_DESC_DB RT_BIT (22)860 %define X86_DESC_G RT_BIT (23)906 %define X86_DESC_TYPE_MASK (RT_BIT_32(8) | RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 907 %define X86_DESC_S RT_BIT_32(12) 908 %define X86_DESC_DPL (RT_BIT_32(13) | RT_BIT_32(14)) 909 %define X86_DESC_P RT_BIT_32(15) 910 %define X86_DESC_AVL RT_BIT_32(20) 911 %define X86_DESC_DB RT_BIT_32(22) 912 %define X86_DESC_G RT_BIT_32(23) 861 913 %define X86_SEL_TYPE_SYS_286_TSS_LIMIT_MIN 0x2b 862 914 %define X86_SEL_TYPE_SYS_386_TSS_LIMIT_MIN 0x67 … … 879 931 %define X86_TRAP_ERR_SEL_MASK 0xfff8 880 932 %define X86_TRAP_ERR_SEL_SHIFT 3 881 %define X86_TRAP_PF_P RT_BIT (0)882 %define X86_TRAP_PF_RW RT_BIT (1)883 %define X86_TRAP_PF_US RT_BIT (2)884 %define X86_TRAP_PF_RSVD RT_BIT (3)885 %define X86_TRAP_PF_ID RT_BIT (4)886 %define X86_TRAP_PF_PK RT_BIT (5)933 %define X86_TRAP_PF_P RT_BIT_32(0) 934 %define X86_TRAP_PF_RW RT_BIT_32(1) 935 %define X86_TRAP_PF_US RT_BIT_32(2) 936 %define X86_TRAP_PF_RSVD RT_BIT_32(3) 937 %define X86_TRAP_PF_ID RT_BIT_32(4) 938 %define X86_TRAP_PF_PK RT_BIT_32(5) 887 939 %ifndef VBOX_FOR_DTRACE_LIB 888 940 %else
Note:
See TracChangeset
for help on using the changeset viewer.