Changeset 47442 in vbox for trunk/include/iprt
- Timestamp:
- Jul 28, 2013 4:28:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/x86.mac
r47305 r47442 32 32 %define X86_EFL_IOPL_SHIFT 12 33 33 %define X86_EFL_GET_IOPL(efl) (((efl) >> X86_EFL_IOPL_SHIFT) & 3) 34 %define X86_EFL_POPF_BITS (X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_TF | X86_EFL_IF | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL | X86_EFL_NT | X86_EFL_AC | X86_EFL_ID) 34 %define X86_EFL_POPF_BITS ( X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_TF | X86_EFL_IF \ 35 | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL | X86_EFL_NT | X86_EFL_AC | X86_EFL_ID ) 35 36 %ifndef VBOX_FOR_DTRACE_LIB 36 37 %else … … 204 205 %define X86_DR6_B2 RT_BIT(2) 205 206 %define X86_DR6_B3 RT_BIT(3) 207 %define X86_DR6_B_MASK 0x0000000f 206 208 %define X86_DR6_BD RT_BIT(13) 207 209 %define X86_DR6_BS RT_BIT(14) 208 210 %define X86_DR6_BT RT_BIT(15) 209 211 %define X86_DR6_INIT_VAL 0xFFFF0FF0 212 %define X86_DR6_RA1_MASK 0xffff0ff0 213 %define X86_DR6_RAZ_MASK RT_BIT_64(12) 214 %define X86_DR6_MBZ_MASK 0xffffffff00000000 215 %define X86_DR6_B(iBp) RT_BIT_64(iBp) 210 216 %define X86_DR7_L0 RT_BIT(0) 211 217 %define X86_DR7_G0 RT_BIT(1) … … 227 233 %define X86_DR7_RW3_MASK (3 << 28) 228 234 %define X86_DR7_LEN3_MASK (3 << 30) 229 %define X86_DR7_MB1_MASK (RT_BIT(10)) 235 %define X86_DR7_RA1_MASK (RT_BIT(10)) 236 %define X86_DR7_RAZ_MASK 0x0000d800 237 %define X86_DR7_MBZ_MASK 0xffffffff00000000 230 238 %define X86_DR7_L(iBp) ( 1 << (iBp * 2) ) 231 239 %define X86_DR7_G(iBp) ( 1 << (iBp * 2 + 1) ) 240 %define X86_DR7_L_G(iBp) ( 3 << (iBp * 2) ) 232 241 %define X86_DR7_RW_EO 0 233 242 %define X86_DR7_RW_WO 1 … … 235 244 %define X86_DR7_RW_RW 3 236 245 %define X86_DR7_RW(iBp, fRw) ( (fRw) << ((iBp) * 4 + 16) ) 246 %define X86_DR7_GET_RW(uDR7, iBp) ( ( (uDR7) >> ((iBp) * 4 + 16) ) & 3 ) 247 %define X86_DR7_RW_ALL_MASKS 0x33330000 248 %define X86_DR7_ANY_RW_IO(uDR7) \ 249 ( ( 0x22220000 & (uDR7) ) 237 250 %define X86_DR7_LEN_BYTE 0 238 251 %define X86_DR7_LEN_WORD 1 … … 240 253 %define X86_DR7_LEN_DWORD 3 241 254 %define X86_DR7_LEN(iBp, cb) ( (cb) << ((iBp) * 4 + 18) ) 242 %define X86_DR7_GET_LEN(uDR7, iBp) ( ( (uDR7) >> ((iBp) * 4 + 18) ) & 0x3) 243 %define X86_DR7_ENABLED_MASK (RT_BIT(0) | RT_BIT(1) | RT_BIT(2) | RT_BIT(3) | RT_BIT(4) | RT_BIT(5) | RT_BIT(6) | RT_BIT(7)) 244 %define X86_DR7_IO_ENABLED_MASK (X86_DR7_RW(0, X86_DR7_RW_IO) | X86_DR7_RW(1, X86_DR7_RW_IO) | X86_DR7_RW(2, X86_DR7_RW_IO) | X86_DR7_RW(3, X86_DR7_RW_IO)) 255 %define X86_DR7_GET_LEN(uDR7, iBp) ( ( (uDR7) >> ((iBp) * 4 + 18) ) & 0x3 ) 256 %define X86_DR7_ENABLED_MASK 0x000000ff 245 257 %define X86_DR7_INIT_VAL 0x400 246 258 %define MSR_IA32_TSC 0x10 … … 546 558 %define X86_FCW_RC_ZERO 0x0c00 547 559 %define X86_FCW_ZERO_MASK 0xf080 560 %define X86_MSXCR_IE RT_BIT(0) 561 %define X86_MSXCR_DE RT_BIT(1) 562 %define X86_MSXCR_ZE RT_BIT(2) 563 %define X86_MSXCR_OE RT_BIT(3) 564 %define X86_MSXCR_UE RT_BIT(4) 565 %define X86_MSXCR_PE RT_BIT(5) 566 %define X86_MSXCR_DAZ RT_BIT(6) 567 %define X86_MSXCR_IM RT_BIT(7) 568 %define X86_MSXCR_DM RT_BIT(8) 569 %define X86_MSXCR_ZM RT_BIT(9) 570 %define X86_MSXCR_OM RT_BIT(10) 571 %define X86_MSXCR_UM RT_BIT(11) 572 %define X86_MSXCR_PM RT_BIT(12) 573 %define X86_MSXCR_RC_MASK 0x6000 574 %define X86_MSXCR_RC_NEAREST 0x0000 575 %define X86_MSXCR_RC_DOWN 0x2000 576 %define X86_MSXCR_RC_UP 0x4000 577 %define X86_MSXCR_RC_ZERO 0x6000 578 %define X86_MSXCR_FZ RT_BIT(15) 579 %define X86_MSXCR_MM RT_BIT(16) 548 580 %ifndef VBOX_FOR_DTRACE_LIB 549 581 %endif
Note:
See TracChangeset
for help on using the changeset viewer.