- Timestamp:
- Mar 9, 2016 11:05:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/x86.h
r59897 r59961 161 161 */ 162 162 /** Bit 0 - CF - Carry flag - Status flag. */ 163 #define X86_EFL_CF RT_BIT (0)163 #define X86_EFL_CF RT_BIT_32(0) 164 164 #define X86_EFL_CF_BIT 0 165 165 /** Bit 1 - Reserved, reads as 1. */ 166 #define X86_EFL_1 RT_BIT (1)166 #define X86_EFL_1 RT_BIT_32(1) 167 167 /** Bit 2 - PF - Parity flag - Status flag. */ 168 #define X86_EFL_PF RT_BIT (2)168 #define X86_EFL_PF RT_BIT_32(2) 169 169 /** Bit 4 - AF - Auxiliary carry flag - Status flag. */ 170 #define X86_EFL_AF RT_BIT (4)170 #define X86_EFL_AF RT_BIT_32(4) 171 171 #define X86_EFL_AF_BIT 4 172 172 /** Bit 6 - ZF - Zero flag - Status flag. */ 173 #define X86_EFL_ZF RT_BIT (6)173 #define X86_EFL_ZF RT_BIT_32(6) 174 174 #define X86_EFL_ZF_BIT 6 175 175 /** Bit 7 - SF - Signed flag - Status flag. */ 176 #define X86_EFL_SF RT_BIT (7)176 #define X86_EFL_SF RT_BIT_32(7) 177 177 #define X86_EFL_SF_BIT 7 178 178 /** Bit 8 - TF - Trap flag - System flag. */ 179 #define X86_EFL_TF RT_BIT (8)179 #define X86_EFL_TF RT_BIT_32(8) 180 180 /** Bit 9 - IF - Interrupt flag - System flag. */ 181 #define X86_EFL_IF RT_BIT (9)181 #define X86_EFL_IF RT_BIT_32(9) 182 182 /** Bit 10 - DF - Direction flag - Control flag. */ 183 #define X86_EFL_DF RT_BIT (10)183 #define X86_EFL_DF RT_BIT_32(10) 184 184 /** Bit 11 - OF - Overflow flag - Status flag. */ 185 #define X86_EFL_OF RT_BIT (11)185 #define X86_EFL_OF RT_BIT_32(11) 186 186 #define X86_EFL_OF_BIT 11 187 187 /** Bit 12-13 - IOPL - I/O privilege level flag - System flag. */ 188 #define X86_EFL_IOPL (RT_BIT (12) | RT_BIT(13))188 #define X86_EFL_IOPL (RT_BIT_32(12) | RT_BIT_32(13)) 189 189 /** Bit 14 - NT - Nested task flag - System flag. */ 190 #define X86_EFL_NT RT_BIT (14)190 #define X86_EFL_NT RT_BIT_32(14) 191 191 /** Bit 16 - RF - Resume flag - System flag. */ 192 #define X86_EFL_RF RT_BIT (16)192 #define X86_EFL_RF RT_BIT_32(16) 193 193 /** Bit 17 - VM - Virtual 8086 mode - System flag. */ 194 #define X86_EFL_VM RT_BIT (17)194 #define X86_EFL_VM RT_BIT_32(17) 195 195 /** Bit 18 - AC - Alignment check flag - System flag. Works with CR0.AM. */ 196 #define X86_EFL_AC RT_BIT (18)196 #define X86_EFL_AC RT_BIT_32(18) 197 197 /** Bit 19 - VIF - Virtual interrupt flag - System flag. */ 198 #define X86_EFL_VIF RT_BIT (19)198 #define X86_EFL_VIF RT_BIT_32(19) 199 199 /** Bit 20 - VIP - Virtual interrupt pending flag - System flag. */ 200 #define X86_EFL_VIP RT_BIT (20)200 #define X86_EFL_VIP RT_BIT_32(20) 201 201 /** Bit 21 - ID - CPUID flag - System flag. If this responds to flipping CPUID is supported. */ 202 #define X86_EFL_ID RT_BIT (21)202 #define X86_EFL_ID RT_BIT_32(21) 203 203 /** All live bits. */ 204 204 #define X86_EFL_LIVE_MASK UINT32_C(0x003f7fd5) … … 399 399 */ 400 400 /** ECX Bit 0 - SSE3 - Supports SSE3 or not. */ 401 #define X86_CPUID_FEATURE_ECX_SSE3 RT_BIT (0)401 #define X86_CPUID_FEATURE_ECX_SSE3 RT_BIT_32(0) 402 402 /** ECX Bit 1 - PCLMUL - PCLMULQDQ support (for AES-GCM). */ 403 #define X86_CPUID_FEATURE_ECX_PCLMUL RT_BIT (1)403 #define X86_CPUID_FEATURE_ECX_PCLMUL RT_BIT_32(1) 404 404 /** ECX Bit 2 - DTES64 - DS Area 64-bit Layout. */ 405 #define X86_CPUID_FEATURE_ECX_DTES64 RT_BIT (2)405 #define X86_CPUID_FEATURE_ECX_DTES64 RT_BIT_32(2) 406 406 /** ECX Bit 3 - MONITOR - Supports MONITOR/MWAIT. */ 407 #define X86_CPUID_FEATURE_ECX_MONITOR RT_BIT (3)407 #define X86_CPUID_FEATURE_ECX_MONITOR RT_BIT_32(3) 408 408 /** ECX Bit 4 - CPL-DS - CPL Qualified Debug Store. */ 409 #define X86_CPUID_FEATURE_ECX_CPLDS RT_BIT (4)409 #define X86_CPUID_FEATURE_ECX_CPLDS RT_BIT_32(4) 410 410 /** ECX Bit 5 - VMX - Virtual Machine Technology. */ 411 #define X86_CPUID_FEATURE_ECX_VMX RT_BIT (5)411 #define X86_CPUID_FEATURE_ECX_VMX RT_BIT_32(5) 412 412 /** ECX Bit 6 - SMX - Safer Mode Extensions. */ 413 #define X86_CPUID_FEATURE_ECX_SMX RT_BIT (6)413 #define X86_CPUID_FEATURE_ECX_SMX RT_BIT_32(6) 414 414 /** ECX Bit 7 - EST - Enh. SpeedStep Tech. */ 415 #define X86_CPUID_FEATURE_ECX_EST RT_BIT (7)415 #define X86_CPUID_FEATURE_ECX_EST RT_BIT_32(7) 416 416 /** ECX Bit 8 - TM2 - Terminal Monitor 2. */ 417 #define X86_CPUID_FEATURE_ECX_TM2 RT_BIT (8)417 #define X86_CPUID_FEATURE_ECX_TM2 RT_BIT_32(8) 418 418 /** ECX Bit 9 - SSSE3 - Supplemental Streaming SIMD Extensions 3. */ 419 #define X86_CPUID_FEATURE_ECX_SSSE3 RT_BIT (9)419 #define X86_CPUID_FEATURE_ECX_SSSE3 RT_BIT_32(9) 420 420 /** ECX Bit 10 - CNTX-ID - L1 Context ID. */ 421 #define X86_CPUID_FEATURE_ECX_CNTXID RT_BIT (10)421 #define X86_CPUID_FEATURE_ECX_CNTXID RT_BIT_32(10) 422 422 /** ECX Bit 11 - SDBG - Sillicon debug interface (IA32_DEBUG_INTERFACE MSR). 423 423 * See figure 3-6 and table 3-10, in intel Vol. 2A. from 2015-01-01. */ 424 #define X86_CPUID_FEATURE_ECX_SDBG RT_BIT (11)424 #define X86_CPUID_FEATURE_ECX_SDBG RT_BIT_32(11) 425 425 /** ECX Bit 12 - FMA. */ 426 #define X86_CPUID_FEATURE_ECX_FMA RT_BIT (12)426 #define X86_CPUID_FEATURE_ECX_FMA RT_BIT_32(12) 427 427 /** ECX Bit 13 - CX16 - CMPXCHG16B. */ 428 #define X86_CPUID_FEATURE_ECX_CX16 RT_BIT (13)428 #define X86_CPUID_FEATURE_ECX_CX16 RT_BIT_32(13) 429 429 /** ECX Bit 14 - xTPR Update Control. Processor supports changing IA32_MISC_ENABLES[bit 23]. */ 430 #define X86_CPUID_FEATURE_ECX_TPRUPDATE RT_BIT (14)430 #define X86_CPUID_FEATURE_ECX_TPRUPDATE RT_BIT_32(14) 431 431 /** ECX Bit 15 - PDCM - Perf/Debug Capability MSR. */ 432 #define X86_CPUID_FEATURE_ECX_PDCM RT_BIT (15)432 #define X86_CPUID_FEATURE_ECX_PDCM RT_BIT_32(15) 433 433 /** ECX Bit 17 - PCID - Process-context identifiers. */ 434 #define X86_CPUID_FEATURE_ECX_PCID RT_BIT (17)434 #define X86_CPUID_FEATURE_ECX_PCID RT_BIT_32(17) 435 435 /** ECX Bit 18 - DCA - Direct Cache Access. */ 436 #define X86_CPUID_FEATURE_ECX_DCA RT_BIT (18)436 #define X86_CPUID_FEATURE_ECX_DCA RT_BIT_32(18) 437 437 /** ECX Bit 19 - SSE4_1 - Supports SSE4_1 or not. */ 438 #define X86_CPUID_FEATURE_ECX_SSE4_1 RT_BIT (19)438 #define X86_CPUID_FEATURE_ECX_SSE4_1 RT_BIT_32(19) 439 439 /** ECX Bit 20 - SSE4_2 - Supports SSE4_2 or not. */ 440 #define X86_CPUID_FEATURE_ECX_SSE4_2 RT_BIT (20)440 #define X86_CPUID_FEATURE_ECX_SSE4_2 RT_BIT_32(20) 441 441 /** ECX Bit 21 - x2APIC support. */ 442 #define X86_CPUID_FEATURE_ECX_X2APIC RT_BIT (21)442 #define X86_CPUID_FEATURE_ECX_X2APIC RT_BIT_32(21) 443 443 /** ECX Bit 22 - MOVBE instruction. */ 444 #define X86_CPUID_FEATURE_ECX_MOVBE RT_BIT (22)444 #define X86_CPUID_FEATURE_ECX_MOVBE RT_BIT_32(22) 445 445 /** ECX Bit 23 - POPCNT instruction. */ 446 #define X86_CPUID_FEATURE_ECX_POPCNT RT_BIT (23)446 #define X86_CPUID_FEATURE_ECX_POPCNT RT_BIT_32(23) 447 447 /** ECX Bir 24 - TSC-Deadline. */ 448 #define X86_CPUID_FEATURE_ECX_TSCDEADL RT_BIT (24)448 #define X86_CPUID_FEATURE_ECX_TSCDEADL RT_BIT_32(24) 449 449 /** ECX Bit 25 - AES instructions. */ 450 #define X86_CPUID_FEATURE_ECX_AES RT_BIT (25)450 #define X86_CPUID_FEATURE_ECX_AES RT_BIT_32(25) 451 451 /** ECX Bit 26 - XSAVE instruction. */ 452 #define X86_CPUID_FEATURE_ECX_XSAVE RT_BIT (26)452 #define X86_CPUID_FEATURE_ECX_XSAVE RT_BIT_32(26) 453 453 /** ECX Bit 27 - OSXSAVE instruction. */ 454 #define X86_CPUID_FEATURE_ECX_OSXSAVE RT_BIT (27)454 #define X86_CPUID_FEATURE_ECX_OSXSAVE RT_BIT_32(27) 455 455 /** ECX Bit 28 - AVX. */ 456 #define X86_CPUID_FEATURE_ECX_AVX RT_BIT (28)456 #define X86_CPUID_FEATURE_ECX_AVX RT_BIT_32(28) 457 457 /** ECX Bit 29 - F16C - Half-precision convert instruction support. */ 458 #define X86_CPUID_FEATURE_ECX_F16C RT_BIT (29)458 #define X86_CPUID_FEATURE_ECX_F16C RT_BIT_32(29) 459 459 /** ECX Bit 30 - RDRAND instruction. */ 460 #define X86_CPUID_FEATURE_ECX_RDRAND RT_BIT (30)460 #define X86_CPUID_FEATURE_ECX_RDRAND RT_BIT_32(30) 461 461 /** ECX Bit 31 - Hypervisor Present (software only). */ 462 #define X86_CPUID_FEATURE_ECX_HVP RT_BIT (31)462 #define X86_CPUID_FEATURE_ECX_HVP RT_BIT_32(31) 463 463 464 464 465 465 /** Bit 0 - FPU - x87 FPU on Chip. */ 466 #define X86_CPUID_FEATURE_EDX_FPU RT_BIT (0)466 #define X86_CPUID_FEATURE_EDX_FPU RT_BIT_32(0) 467 467 /** Bit 1 - VME - Virtual 8086 Mode Enhancements. */ 468 #define X86_CPUID_FEATURE_EDX_VME RT_BIT (1)468 #define X86_CPUID_FEATURE_EDX_VME RT_BIT_32(1) 469 469 /** Bit 2 - DE - Debugging extensions. */ 470 #define X86_CPUID_FEATURE_EDX_DE RT_BIT (2)470 #define X86_CPUID_FEATURE_EDX_DE RT_BIT_32(2) 471 471 /** Bit 3 - PSE - Page Size Extension. */ 472 #define X86_CPUID_FEATURE_EDX_PSE RT_BIT (3)472 #define X86_CPUID_FEATURE_EDX_PSE RT_BIT_32(3) 473 473 /** Bit 4 - TSC - Time Stamp Counter. */ 474 #define X86_CPUID_FEATURE_EDX_TSC RT_BIT (4)474 #define X86_CPUID_FEATURE_EDX_TSC RT_BIT_32(4) 475 475 /** Bit 5 - MSR - Model Specific Registers RDMSR and WRMSR Instructions. */ 476 #define X86_CPUID_FEATURE_EDX_MSR RT_BIT (5)476 #define X86_CPUID_FEATURE_EDX_MSR RT_BIT_32(5) 477 477 /** Bit 6 - PAE - Physical Address Extension. */ 478 #define X86_CPUID_FEATURE_EDX_PAE RT_BIT (6)478 #define X86_CPUID_FEATURE_EDX_PAE RT_BIT_32(6) 479 479 #define X86_CPUID_FEATURE_EDX_PAE_BIT 6 480 480 /** Bit 7 - MCE - Machine Check Exception. */ 481 #define X86_CPUID_FEATURE_EDX_MCE RT_BIT (7)481 #define X86_CPUID_FEATURE_EDX_MCE RT_BIT_32(7) 482 482 /** Bit 8 - CX8 - CMPXCHG8B instruction. */ 483 #define X86_CPUID_FEATURE_EDX_CX8 RT_BIT (8)483 #define X86_CPUID_FEATURE_EDX_CX8 RT_BIT_32(8) 484 484 /** Bit 9 - APIC - APIC On-Chip. */ 485 #define X86_CPUID_FEATURE_EDX_APIC RT_BIT (9)485 #define X86_CPUID_FEATURE_EDX_APIC RT_BIT_32(9) 486 486 /** Bit 11 - SEP - SYSENTER and SYSEXIT Present. */ 487 #define X86_CPUID_FEATURE_EDX_SEP RT_BIT (11)487 #define X86_CPUID_FEATURE_EDX_SEP RT_BIT_32(11) 488 488 /** Bit 12 - MTRR - Memory Type Range Registers. */ 489 #define X86_CPUID_FEATURE_EDX_MTRR RT_BIT (12)489 #define X86_CPUID_FEATURE_EDX_MTRR RT_BIT_32(12) 490 490 /** Bit 13 - PGE - PTE Global Bit. */ 491 #define X86_CPUID_FEATURE_EDX_PGE RT_BIT (13)491 #define X86_CPUID_FEATURE_EDX_PGE RT_BIT_32(13) 492 492 /** Bit 14 - MCA - Machine Check Architecture. */ 493 #define X86_CPUID_FEATURE_EDX_MCA RT_BIT (14)493 #define X86_CPUID_FEATURE_EDX_MCA RT_BIT_32(14) 494 494 /** Bit 15 - CMOV - Conditional Move Instructions. */ 495 #define X86_CPUID_FEATURE_EDX_CMOV RT_BIT (15)495 #define X86_CPUID_FEATURE_EDX_CMOV RT_BIT_32(15) 496 496 /** Bit 16 - PAT - Page Attribute Table. */ 497 #define X86_CPUID_FEATURE_EDX_PAT RT_BIT (16)497 #define X86_CPUID_FEATURE_EDX_PAT RT_BIT_32(16) 498 498 /** Bit 17 - PSE-36 - 36-bit Page Size Extension. */ 499 #define X86_CPUID_FEATURE_EDX_PSE36 RT_BIT (17)499 #define X86_CPUID_FEATURE_EDX_PSE36 RT_BIT_32(17) 500 500 /** Bit 18 - PSN - Processor Serial Number. */ 501 #define X86_CPUID_FEATURE_EDX_PSN RT_BIT (18)501 #define X86_CPUID_FEATURE_EDX_PSN RT_BIT_32(18) 502 502 /** Bit 19 - CLFSH - CLFLUSH Instruction. */ 503 #define X86_CPUID_FEATURE_EDX_CLFSH RT_BIT (19)503 #define X86_CPUID_FEATURE_EDX_CLFSH RT_BIT_32(19) 504 504 /** Bit 21 - DS - Debug Store. */ 505 #define X86_CPUID_FEATURE_EDX_DS RT_BIT (21)505 #define X86_CPUID_FEATURE_EDX_DS RT_BIT_32(21) 506 506 /** Bit 22 - ACPI - Thermal Monitor and Software Controlled Clock Facilities. */ 507 #define X86_CPUID_FEATURE_EDX_ACPI RT_BIT (22)507 #define X86_CPUID_FEATURE_EDX_ACPI RT_BIT_32(22) 508 508 /** Bit 23 - MMX - Intel MMX Technology. */ 509 #define X86_CPUID_FEATURE_EDX_MMX RT_BIT (23)509 #define X86_CPUID_FEATURE_EDX_MMX RT_BIT_32(23) 510 510 /** Bit 24 - FXSR - FXSAVE and FXRSTOR Instructions. */ 511 #define X86_CPUID_FEATURE_EDX_FXSR RT_BIT (24)511 #define X86_CPUID_FEATURE_EDX_FXSR RT_BIT_32(24) 512 512 /** Bit 25 - SSE - SSE Support. */ 513 #define X86_CPUID_FEATURE_EDX_SSE RT_BIT (25)513 #define X86_CPUID_FEATURE_EDX_SSE RT_BIT_32(25) 514 514 /** Bit 26 - SSE2 - SSE2 Support. */ 515 #define X86_CPUID_FEATURE_EDX_SSE2 RT_BIT (26)515 #define X86_CPUID_FEATURE_EDX_SSE2 RT_BIT_32(26) 516 516 /** Bit 27 - SS - Self Snoop. */ 517 #define X86_CPUID_FEATURE_EDX_SS RT_BIT (27)517 #define X86_CPUID_FEATURE_EDX_SS RT_BIT_32(27) 518 518 /** Bit 28 - HTT - Hyper-Threading Technology. */ 519 #define X86_CPUID_FEATURE_EDX_HTT RT_BIT (28)519 #define X86_CPUID_FEATURE_EDX_HTT RT_BIT_32(28) 520 520 /** Bit 29 - TM - Therm. Monitor. */ 521 #define X86_CPUID_FEATURE_EDX_TM RT_BIT (29)521 #define X86_CPUID_FEATURE_EDX_TM RT_BIT_32(29) 522 522 /** Bit 31 - PBE - Pending Break Enabled. */ 523 #define X86_CPUID_FEATURE_EDX_PBE RT_BIT (31)523 #define X86_CPUID_FEATURE_EDX_PBE RT_BIT_32(31) 524 524 /** @} */ 525 525 … … 529 529 */ 530 530 /** ECX Bit 0 - MWAITEXT - Supports mwait/monitor extensions or not. */ 531 #define X86_CPUID_MWAIT_ECX_EXT RT_BIT (0)531 #define X86_CPUID_MWAIT_ECX_EXT RT_BIT_32(0) 532 532 /** ECX Bit 1 - MWAITBREAK - Break mwait for external interrupt even if EFLAGS.IF=0. */ 533 #define X86_CPUID_MWAIT_ECX_BREAKIRQIF0 RT_BIT (1)533 #define X86_CPUID_MWAIT_ECX_BREAKIRQIF0 RT_BIT_32(1) 534 534 /** @} */ 535 535 … … 540 540 */ 541 541 /** EBX Bit 0 - FSGSBASE - Supports RDFSBASE/RDGSBASE/WRFSBASE/WRGSBASE. */ 542 #define X86_CPUID_STEXT_FEATURE_EBX_FSGSBASE RT_BIT (0)542 #define X86_CPUID_STEXT_FEATURE_EBX_FSGSBASE RT_BIT_32(0) 543 543 /** EBX Bit 1 - TSCADJUST - Supports MSR_IA32_TSC_ADJUST. */ 544 #define X86_CPUID_STEXT_FEATURE_EBX_TSC_ADJUST RT_BIT (1)544 #define X86_CPUID_STEXT_FEATURE_EBX_TSC_ADJUST RT_BIT_32(1) 545 545 /** EBX Bit 3 - BMI1 - Advanced Bit Manipulation extension 1. */ 546 #define X86_CPUID_STEXT_FEATURE_EBX_BMI1 RT_BIT (3)546 #define X86_CPUID_STEXT_FEATURE_EBX_BMI1 RT_BIT_32(3) 547 547 /** EBX Bit 4 - HLE - Hardware Lock Elision. */ 548 #define X86_CPUID_STEXT_FEATURE_EBX_HLE RT_BIT (4)548 #define X86_CPUID_STEXT_FEATURE_EBX_HLE RT_BIT_32(4) 549 549 /** EBX Bit 5 - AVX2 - Advanced Vector Extensions 2. */ 550 #define X86_CPUID_STEXT_FEATURE_EBX_AVX2 RT_BIT (5)550 #define X86_CPUID_STEXT_FEATURE_EBX_AVX2 RT_BIT_32(5) 551 551 /** EBX Bit 7 - SMEP - Supervisor Mode Execution Prevention. */ 552 #define X86_CPUID_STEXT_FEATURE_EBX_SMEP RT_BIT (7)552 #define X86_CPUID_STEXT_FEATURE_EBX_SMEP RT_BIT_32(7) 553 553 /** EBX Bit 8 - BMI2 - Advanced Bit Manipulation extension 2. */ 554 #define X86_CPUID_STEXT_FEATURE_EBX_BMI2 RT_BIT (8)554 #define X86_CPUID_STEXT_FEATURE_EBX_BMI2 RT_BIT_32(8) 555 555 /** EBX Bit 9 - ERMS - Supports Enhanced REP MOVSB/STOSB. */ 556 #define X86_CPUID_STEXT_FEATURE_EBX_ERMS RT_BIT (9)556 #define X86_CPUID_STEXT_FEATURE_EBX_ERMS RT_BIT_32(9) 557 557 /** EBX Bit 10 - INVPCID - Supports INVPCID. */ 558 #define X86_CPUID_STEXT_FEATURE_EBX_INVPCID RT_BIT (10)558 #define X86_CPUID_STEXT_FEATURE_EBX_INVPCID RT_BIT_32(10) 559 559 /** EBX Bit 11 - RTM - Supports Restricted Transactional Memory. */ 560 #define X86_CPUID_STEXT_FEATURE_EBX_RTM RT_BIT (11)560 #define X86_CPUID_STEXT_FEATURE_EBX_RTM RT_BIT_32(11) 561 561 /** EBX Bit 12 - PQM - Supports Platform Quality of Service Monitoring. */ 562 #define X86_CPUID_STEXT_FEATURE_EBX_PQM RT_BIT (12)562 #define X86_CPUID_STEXT_FEATURE_EBX_PQM RT_BIT_32(12) 563 563 /** EBX Bit 13 - DEPFPU_CS_DS - Deprecates FPU CS, FPU DS values if set. */ 564 #define X86_CPUID_STEXT_FEATURE_EBX_DEPR_FPU_CS_DS RT_BIT (13)564 #define X86_CPUID_STEXT_FEATURE_EBX_DEPR_FPU_CS_DS RT_BIT_32(13) 565 565 /** EBX Bit 14 - MPE - Supports Intel Memory Protection Extensions. */ 566 #define X86_CPUID_STEXT_FEATURE_EBX_MPE RT_BIT (14)566 #define X86_CPUID_STEXT_FEATURE_EBX_MPE RT_BIT_32(14) 567 567 /** EBX Bit 15 - PQE - Supports Platform Quality of Service Enforcement. */ 568 #define X86_CPUID_STEXT_FEATURE_EBX_PQE RT_BIT (15)568 #define X86_CPUID_STEXT_FEATURE_EBX_PQE RT_BIT_32(15) 569 569 /** EBX Bit 16 - AVX512F - Supports AVX512F. */ 570 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512F RT_BIT (16)570 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512F RT_BIT_32(16) 571 571 /** EBX Bit 18 - RDSEED - Supports RDSEED. */ 572 #define X86_CPUID_STEXT_FEATURE_EBX_RDSEED RT_BIT (18)572 #define X86_CPUID_STEXT_FEATURE_EBX_RDSEED RT_BIT_32(18) 573 573 /** EBX Bit 19 - ADX - Supports ADCX/ADOX. */ 574 #define X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT (19)574 #define X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT_32(19) 575 575 /** EBX Bit 20 - SMAP - Supports Supervisor Mode Access Prevention. */ 576 #define X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT (20)576 #define X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT_32(20) 577 577 /** EBX Bit 23 - CLFLUSHOPT - Supports CLFLUSHOPT (Cache Line Flush). */ 578 #define X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT RT_BIT (23)578 #define X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT RT_BIT_32(23) 579 579 /** EBX Bit 25 - INTEL_PT - Supports Intel Processor Trace. */ 580 #define X86_CPUID_STEXT_FEATURE_EBX_INTEL_PT RT_BIT (25)580 #define X86_CPUID_STEXT_FEATURE_EBX_INTEL_PT RT_BIT_32(25) 581 581 /** EBX Bit 26 - AVX512PF - Supports AVX512PF. */ 582 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512PF RT_BIT (26)582 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512PF RT_BIT_32(26) 583 583 /** EBX Bit 27 - AVX512ER - Supports AVX512ER. */ 584 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512ER RT_BIT (27)584 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512ER RT_BIT_32(27) 585 585 /** EBX Bit 28 - AVX512CD - Supports AVX512CD. */ 586 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512CD RT_BIT (28)586 #define X86_CPUID_STEXT_FEATURE_EBX_AVX512CD RT_BIT_32(28) 587 587 /** EBX Bit 29 - SHA - Supports Secure Hash Algorithm extensions. */ 588 #define X86_CPUID_STEXT_FEATURE_EBX_SHA RT_BIT (29)588 #define X86_CPUID_STEXT_FEATURE_EBX_SHA RT_BIT_32(29) 589 589 590 590 /** ECX Bit 0 - PREFETCHWT1 - Supports the PREFETCHWT1 instruction. */ 591 #define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1 RT_BIT (0)591 #define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1 RT_BIT_32(0) 592 592 /** @} */ 593 593 … … 598 598 */ 599 599 /** ECX Bit 0 - LAHF/SAHF support in 64-bit mode. */ 600 #define X86_CPUID_EXT_FEATURE_ECX_LAHF_SAHF RT_BIT (0)600 #define X86_CPUID_EXT_FEATURE_ECX_LAHF_SAHF RT_BIT_32(0) 601 601 602 602 /** EDX Bit 11 - SYSCALL/SYSRET. */ 603 #define X86_CPUID_EXT_FEATURE_EDX_SYSCALL RT_BIT (11)603 #define X86_CPUID_EXT_FEATURE_EDX_SYSCALL RT_BIT_32(11) 604 604 /** EDX Bit 20 - No-Execute/Execute-Disable. */ 605 #define X86_CPUID_EXT_FEATURE_EDX_NX RT_BIT (20)605 #define X86_CPUID_EXT_FEATURE_EDX_NX RT_BIT_32(20) 606 606 /** EDX Bit 26 - 1 GB large page. */ 607 #define X86_CPUID_EXT_FEATURE_EDX_PAGE1GB RT_BIT (26)607 #define X86_CPUID_EXT_FEATURE_EDX_PAGE1GB RT_BIT_32(26) 608 608 /** EDX Bit 27 - RDTSCP. */ 609 #define X86_CPUID_EXT_FEATURE_EDX_RDTSCP RT_BIT (27)609 #define X86_CPUID_EXT_FEATURE_EDX_RDTSCP RT_BIT_32(27) 610 610 /** EDX Bit 29 - AMD Long Mode/Intel-64 Instructions. */ 611 #define X86_CPUID_EXT_FEATURE_EDX_LONG_MODE RT_BIT (29)611 #define X86_CPUID_EXT_FEATURE_EDX_LONG_MODE RT_BIT_32(29) 612 612 /** @}*/ 613 613 … … 617 617 */ 618 618 /** Bit 0 - FPU - x87 FPU on Chip. */ 619 #define X86_CPUID_AMD_FEATURE_EDX_FPU RT_BIT (0)619 #define X86_CPUID_AMD_FEATURE_EDX_FPU RT_BIT_32(0) 620 620 /** Bit 1 - VME - Virtual 8086 Mode Enhancements. */ 621 #define X86_CPUID_AMD_FEATURE_EDX_VME RT_BIT (1)621 #define X86_CPUID_AMD_FEATURE_EDX_VME RT_BIT_32(1) 622 622 /** Bit 2 - DE - Debugging extensions. */ 623 #define X86_CPUID_AMD_FEATURE_EDX_DE RT_BIT (2)623 #define X86_CPUID_AMD_FEATURE_EDX_DE RT_BIT_32(2) 624 624 /** Bit 3 - PSE - Page Size Extension. */ 625 #define X86_CPUID_AMD_FEATURE_EDX_PSE RT_BIT (3)625 #define X86_CPUID_AMD_FEATURE_EDX_PSE RT_BIT_32(3) 626 626 /** Bit 4 - TSC - Time Stamp Counter. */ 627 #define X86_CPUID_AMD_FEATURE_EDX_TSC RT_BIT (4)627 #define X86_CPUID_AMD_FEATURE_EDX_TSC RT_BIT_32(4) 628 628 /** Bit 5 - MSR - K86 Model Specific Registers RDMSR and WRMSR Instructions. */ 629 #define X86_CPUID_AMD_FEATURE_EDX_MSR RT_BIT (5)629 #define X86_CPUID_AMD_FEATURE_EDX_MSR RT_BIT_32(5) 630 630 /** Bit 6 - PAE - Physical Address Extension. */ 631 #define X86_CPUID_AMD_FEATURE_EDX_PAE RT_BIT (6)631 #define X86_CPUID_AMD_FEATURE_EDX_PAE RT_BIT_32(6) 632 632 /** Bit 7 - MCE - Machine Check Exception. */ 633 #define X86_CPUID_AMD_FEATURE_EDX_MCE RT_BIT (7)633 #define X86_CPUID_AMD_FEATURE_EDX_MCE RT_BIT_32(7) 634 634 /** Bit 8 - CX8 - CMPXCHG8B instruction. */ 635 #define X86_CPUID_AMD_FEATURE_EDX_CX8 RT_BIT (8)635 #define X86_CPUID_AMD_FEATURE_EDX_CX8 RT_BIT_32(8) 636 636 /** Bit 9 - APIC - APIC On-Chip. */ 637 #define X86_CPUID_AMD_FEATURE_EDX_APIC RT_BIT (9)637 #define X86_CPUID_AMD_FEATURE_EDX_APIC RT_BIT_32(9) 638 638 /** Bit 12 - MTRR - Memory Type Range Registers. */ 639 #define X86_CPUID_AMD_FEATURE_EDX_MTRR RT_BIT (12)639 #define X86_CPUID_AMD_FEATURE_EDX_MTRR RT_BIT_32(12) 640 640 /** Bit 13 - PGE - PTE Global Bit. */ 641 #define X86_CPUID_AMD_FEATURE_EDX_PGE RT_BIT (13)641 #define X86_CPUID_AMD_FEATURE_EDX_PGE RT_BIT_32(13) 642 642 /** Bit 14 - MCA - Machine Check Architecture. */ 643 #define X86_CPUID_AMD_FEATURE_EDX_MCA RT_BIT (14)643 #define X86_CPUID_AMD_FEATURE_EDX_MCA RT_BIT_32(14) 644 644 /** Bit 15 - CMOV - Conditional Move Instructions. */ 645 #define X86_CPUID_AMD_FEATURE_EDX_CMOV RT_BIT (15)645 #define X86_CPUID_AMD_FEATURE_EDX_CMOV RT_BIT_32(15) 646 646 /** Bit 16 - PAT - Page Attribute Table. */ 647 #define X86_CPUID_AMD_FEATURE_EDX_PAT RT_BIT (16)647 #define X86_CPUID_AMD_FEATURE_EDX_PAT RT_BIT_32(16) 648 648 /** Bit 17 - PSE-36 - 36-bit Page Size Extension. */ 649 #define X86_CPUID_AMD_FEATURE_EDX_PSE36 RT_BIT (17)649 #define X86_CPUID_AMD_FEATURE_EDX_PSE36 RT_BIT_32(17) 650 650 /** Bit 22 - AXMMX - AMD Extensions to MMX Instructions. */ 651 #define X86_CPUID_AMD_FEATURE_EDX_AXMMX RT_BIT (22)651 #define X86_CPUID_AMD_FEATURE_EDX_AXMMX RT_BIT_32(22) 652 652 /** Bit 23 - MMX - Intel MMX Technology. */ 653 #define X86_CPUID_AMD_FEATURE_EDX_MMX RT_BIT (23)653 #define X86_CPUID_AMD_FEATURE_EDX_MMX RT_BIT_32(23) 654 654 /** Bit 24 - FXSR - FXSAVE and FXRSTOR Instructions. */ 655 #define X86_CPUID_AMD_FEATURE_EDX_FXSR RT_BIT (24)655 #define X86_CPUID_AMD_FEATURE_EDX_FXSR RT_BIT_32(24) 656 656 /** Bit 25 - FFXSR - AMD fast FXSAVE and FXRSTOR Instructions. */ 657 #define X86_CPUID_AMD_FEATURE_EDX_FFXSR RT_BIT (25)657 #define X86_CPUID_AMD_FEATURE_EDX_FFXSR RT_BIT_32(25) 658 658 /** Bit 30 - 3DNOWEXT - AMD Extensions to 3DNow. */ 659 #define X86_CPUID_AMD_FEATURE_EDX_3DNOW_EX RT_BIT (30)659 #define X86_CPUID_AMD_FEATURE_EDX_3DNOW_EX RT_BIT_32(30) 660 660 /** Bit 31 - 3DNOW - AMD 3DNow. */ 661 #define X86_CPUID_AMD_FEATURE_EDX_3DNOW RT_BIT (31)661 #define X86_CPUID_AMD_FEATURE_EDX_3DNOW RT_BIT_32(31) 662 662 663 663 /** Bit 1 - CmpLegacy - Core multi-processing legacy mode. */ 664 #define X86_CPUID_AMD_FEATURE_ECX_CMPL RT_BIT (1)664 #define X86_CPUID_AMD_FEATURE_ECX_CMPL RT_BIT_32(1) 665 665 /** Bit 2 - SVM - AMD VM extensions. */ 666 #define X86_CPUID_AMD_FEATURE_ECX_SVM RT_BIT (2)666 #define X86_CPUID_AMD_FEATURE_ECX_SVM RT_BIT_32(2) 667 667 /** Bit 3 - EXTAPIC - AMD extended APIC registers starting at 0x400. */ 668 #define X86_CPUID_AMD_FEATURE_ECX_EXT_APIC RT_BIT (3)668 #define X86_CPUID_AMD_FEATURE_ECX_EXT_APIC RT_BIT_32(3) 669 669 /** Bit 4 - CR8L - AMD LOCK MOV CR0 means MOV CR8. */ 670 #define X86_CPUID_AMD_FEATURE_ECX_CR8L RT_BIT (4)670 #define X86_CPUID_AMD_FEATURE_ECX_CR8L RT_BIT_32(4) 671 671 /** Bit 5 - ABM - AMD Advanced bit manipulation. LZCNT instruction support. */ 672 #define X86_CPUID_AMD_FEATURE_ECX_ABM RT_BIT (5)672 #define X86_CPUID_AMD_FEATURE_ECX_ABM RT_BIT_32(5) 673 673 /** Bit 6 - SSE4A - AMD EXTRQ, INSERTQ, MOVNTSS, and MOVNTSD instruction support. */ 674 #define X86_CPUID_AMD_FEATURE_ECX_SSE4A RT_BIT (6)674 #define X86_CPUID_AMD_FEATURE_ECX_SSE4A RT_BIT_32(6) 675 675 /** Bit 7 - MISALIGNSSE - AMD Misaligned SSE mode. */ 676 #define X86_CPUID_AMD_FEATURE_ECX_MISALNSSE RT_BIT (7)676 #define X86_CPUID_AMD_FEATURE_ECX_MISALNSSE RT_BIT_32(7) 677 677 /** Bit 8 - 3DNOWPRF - AMD PREFETCH and PREFETCHW instruction support. */ 678 #define X86_CPUID_AMD_FEATURE_ECX_3DNOWPRF RT_BIT (8)678 #define X86_CPUID_AMD_FEATURE_ECX_3DNOWPRF RT_BIT_32(8) 679 679 /** Bit 9 - OSVW - AMD OS visible workaround. */ 680 #define X86_CPUID_AMD_FEATURE_ECX_OSVW RT_BIT (9)680 #define X86_CPUID_AMD_FEATURE_ECX_OSVW RT_BIT_32(9) 681 681 /** Bit 10 - IBS - Instruct based sampling. */ 682 #define X86_CPUID_AMD_FEATURE_ECX_IBS RT_BIT (10)682 #define X86_CPUID_AMD_FEATURE_ECX_IBS RT_BIT_32(10) 683 683 /** Bit 11 - XOP - Extended operation support (see APM6). */ 684 #define X86_CPUID_AMD_FEATURE_ECX_XOP RT_BIT (11)684 #define X86_CPUID_AMD_FEATURE_ECX_XOP RT_BIT_32(11) 685 685 /** Bit 12 - SKINIT - AMD SKINIT: SKINIT, STGI, and DEV support. */ 686 #define X86_CPUID_AMD_FEATURE_ECX_SKINIT RT_BIT (12)686 #define X86_CPUID_AMD_FEATURE_ECX_SKINIT RT_BIT_32(12) 687 687 /** Bit 13 - WDT - AMD Watchdog timer support. */ 688 #define X86_CPUID_AMD_FEATURE_ECX_WDT RT_BIT (13)688 #define X86_CPUID_AMD_FEATURE_ECX_WDT RT_BIT_32(13) 689 689 /** Bit 15 - LWP - Lightweight profiling support. */ 690 #define X86_CPUID_AMD_FEATURE_ECX_LWP RT_BIT (15)690 #define X86_CPUID_AMD_FEATURE_ECX_LWP RT_BIT_32(15) 691 691 /** Bit 16 - FMA4 - Four operand FMA instruction support. */ 692 #define X86_CPUID_AMD_FEATURE_ECX_FMA4 RT_BIT (16)692 #define X86_CPUID_AMD_FEATURE_ECX_FMA4 RT_BIT_32(16) 693 693 /** Bit 19 - NodeId - Indicates support for 694 694 * MSR_C001_100C[NodeId,NodesPerProcessr]. */ 695 #define X86_CPUID_AMD_FEATURE_ECX_NODEID RT_BIT (19)695 #define X86_CPUID_AMD_FEATURE_ECX_NODEID RT_BIT_32(19) 696 696 /** Bit 21 - TBM - Trailing bit manipulation instruction support. */ 697 #define X86_CPUID_AMD_FEATURE_ECX_TBM RT_BIT (21)697 #define X86_CPUID_AMD_FEATURE_ECX_TBM RT_BIT_32(21) 698 698 /** Bit 22 - TopologyExtensions - . */ 699 #define X86_CPUID_AMD_FEATURE_ECX_TOPOEXT RT_BIT (22)699 #define X86_CPUID_AMD_FEATURE_ECX_TOPOEXT RT_BIT_32(22) 700 700 /** @} */ 701 701 … … 706 706 */ 707 707 /** Bit 0 - TS - Temperature Sensor. */ 708 #define X86_CPUID_AMD_ADVPOWER_EDX_TS RT_BIT (0)708 #define X86_CPUID_AMD_ADVPOWER_EDX_TS RT_BIT_32(0) 709 709 /** Bit 1 - FID - Frequency ID Control. */ 710 #define X86_CPUID_AMD_ADVPOWER_EDX_FID RT_BIT (1)710 #define X86_CPUID_AMD_ADVPOWER_EDX_FID RT_BIT_32(1) 711 711 /** Bit 2 - VID - Voltage ID Control. */ 712 #define X86_CPUID_AMD_ADVPOWER_EDX_VID RT_BIT (2)712 #define X86_CPUID_AMD_ADVPOWER_EDX_VID RT_BIT_32(2) 713 713 /** Bit 3 - TTP - THERMTRIP. */ 714 #define X86_CPUID_AMD_ADVPOWER_EDX_TTP RT_BIT (3)714 #define X86_CPUID_AMD_ADVPOWER_EDX_TTP RT_BIT_32(3) 715 715 /** Bit 4 - TM - Hardware Thermal Control. */ 716 #define X86_CPUID_AMD_ADVPOWER_EDX_TM RT_BIT (4)716 #define X86_CPUID_AMD_ADVPOWER_EDX_TM RT_BIT_32(4) 717 717 /** Bit 5 - STC - Software Thermal Control. */ 718 #define X86_CPUID_AMD_ADVPOWER_EDX_STC RT_BIT (5)718 #define X86_CPUID_AMD_ADVPOWER_EDX_STC RT_BIT_32(5) 719 719 /** Bit 6 - MC - 100 Mhz Multiplier Control. */ 720 #define X86_CPUID_AMD_ADVPOWER_EDX_MC RT_BIT (6)720 #define X86_CPUID_AMD_ADVPOWER_EDX_MC RT_BIT_32(6) 721 721 /** Bit 7 - HWPSTATE - Hardware P-State Control. */ 722 #define X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE RT_BIT (7)722 #define X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE RT_BIT_32(7) 723 723 /** Bit 8 - TSCINVAR - TSC Invariant. */ 724 #define X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR RT_BIT (8)724 #define X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR RT_BIT_32(8) 725 725 /** Bit 9 - CPB - TSC Invariant. */ 726 #define X86_CPUID_AMD_ADVPOWER_EDX_CPB RT_BIT (9)726 #define X86_CPUID_AMD_ADVPOWER_EDX_CPB RT_BIT_32(9) 727 727 /** Bit 10 - EffFreqRO - MPERF/APERF. */ 728 #define X86_CPUID_AMD_ADVPOWER_EDX_EFRO RT_BIT (10)728 #define X86_CPUID_AMD_ADVPOWER_EDX_EFRO RT_BIT_32(10) 729 729 /** Bit 11 - PFI - Processor feedback interface (see EAX). */ 730 #define X86_CPUID_AMD_ADVPOWER_EDX_PFI RT_BIT (11)730 #define X86_CPUID_AMD_ADVPOWER_EDX_PFI RT_BIT_32(11) 731 731 /** Bit 12 - PA - Processor accumulator (MSR c001_007a). */ 732 #define X86_CPUID_AMD_ADVPOWER_EDX_PA RT_BIT (12)732 #define X86_CPUID_AMD_ADVPOWER_EDX_PA RT_BIT_32(12) 733 733 /** @} */ 734 734 … … 737 737 * @{ */ 738 738 /** Bit 0 - PE - Protection Enabled */ 739 #define X86_CR0_PE RT_BIT (0)740 #define X86_CR0_PROTECTION_ENABLE RT_BIT (0)739 #define X86_CR0_PE RT_BIT_32(0) 740 #define X86_CR0_PROTECTION_ENABLE RT_BIT_32(0) 741 741 /** Bit 1 - MP - Monitor Coprocessor */ 742 #define X86_CR0_MP RT_BIT (1)743 #define X86_CR0_MONITOR_COPROCESSOR RT_BIT (1)742 #define X86_CR0_MP RT_BIT_32(1) 743 #define X86_CR0_MONITOR_COPROCESSOR RT_BIT_32(1) 744 744 /** Bit 2 - EM - Emulation. */ 745 #define X86_CR0_EM RT_BIT (2)746 #define X86_CR0_EMULATE_FPU RT_BIT (2)745 #define X86_CR0_EM RT_BIT_32(2) 746 #define X86_CR0_EMULATE_FPU RT_BIT_32(2) 747 747 /** Bit 3 - TS - Task Switch. */ 748 #define X86_CR0_TS RT_BIT (3)749 #define X86_CR0_TASK_SWITCH RT_BIT (3)748 #define X86_CR0_TS RT_BIT_32(3) 749 #define X86_CR0_TASK_SWITCH RT_BIT_32(3) 750 750 /** Bit 4 - ET - Extension flag. ('hardcoded' to 1) */ 751 #define X86_CR0_ET RT_BIT (4)752 #define X86_CR0_EXTENSION_TYPE RT_BIT (4)751 #define X86_CR0_ET RT_BIT_32(4) 752 #define X86_CR0_EXTENSION_TYPE RT_BIT_32(4) 753 753 /** Bit 5 - NE - Numeric error. */ 754 #define X86_CR0_NE RT_BIT (5)755 #define X86_CR0_NUMERIC_ERROR RT_BIT (5)754 #define X86_CR0_NE RT_BIT_32(5) 755 #define X86_CR0_NUMERIC_ERROR RT_BIT_32(5) 756 756 /** Bit 16 - WP - Write Protect. */ 757 #define X86_CR0_WP RT_BIT (16)758 #define X86_CR0_WRITE_PROTECT RT_BIT (16)757 #define X86_CR0_WP RT_BIT_32(16) 758 #define X86_CR0_WRITE_PROTECT RT_BIT_32(16) 759 759 /** Bit 18 - AM - Alignment Mask. */ 760 #define X86_CR0_AM RT_BIT (18)761 #define X86_CR0_ALIGMENT_MASK RT_BIT (18)760 #define X86_CR0_AM RT_BIT_32(18) 761 #define X86_CR0_ALIGMENT_MASK RT_BIT_32(18) 762 762 /** Bit 29 - NW - Not Write-though. */ 763 #define X86_CR0_NW RT_BIT (29)764 #define X86_CR0_NOT_WRITE_THROUGH RT_BIT (29)763 #define X86_CR0_NW RT_BIT_32(29) 764 #define X86_CR0_NOT_WRITE_THROUGH RT_BIT_32(29) 765 765 /** Bit 30 - WP - Cache Disable. */ 766 #define X86_CR0_CD RT_BIT (30)767 #define X86_CR0_CACHE_DISABLE RT_BIT (30)766 #define X86_CR0_CD RT_BIT_32(30) 767 #define X86_CR0_CACHE_DISABLE RT_BIT_32(30) 768 768 /** Bit 31 - PG - Paging. */ 769 #define X86_CR0_PG RT_BIT (31)770 #define X86_CR0_PAGING RT_BIT (31)769 #define X86_CR0_PG RT_BIT_32(31) 770 #define X86_CR0_PAGING RT_BIT_32(31) 771 771 /** @} */ 772 772 … … 775 775 * @{ */ 776 776 /** Bit 3 - PWT - Page-level Writes Transparent. */ 777 #define X86_CR3_PWT RT_BIT (3)777 #define X86_CR3_PWT RT_BIT_32(3) 778 778 /** Bit 4 - PCD - Page-level Cache Disable. */ 779 #define X86_CR3_PCD RT_BIT (4)779 #define X86_CR3_PCD RT_BIT_32(4) 780 780 /** Bits 12-31 - - Page directory page number. */ 781 781 #define X86_CR3_PAGE_MASK (0xfffff000) … … 790 790 * @{ */ 791 791 /** Bit 0 - VME - Virtual-8086 Mode Extensions. */ 792 #define X86_CR4_VME RT_BIT (0)792 #define X86_CR4_VME RT_BIT_32(0) 793 793 /** Bit 1 - PVI - Protected-Mode Virtual Interrupts. */ 794 #define X86_CR4_PVI RT_BIT (1)794 #define X86_CR4_PVI RT_BIT_32(1) 795 795 /** Bit 2 - TSD - Time Stamp Disable. */ 796 #define X86_CR4_TSD RT_BIT (2)796 #define X86_CR4_TSD RT_BIT_32(2) 797 797 /** Bit 3 - DE - Debugging Extensions. */ 798 #define X86_CR4_DE RT_BIT (3)798 #define X86_CR4_DE RT_BIT_32(3) 799 799 /** Bit 4 - PSE - Page Size Extension. */ 800 #define X86_CR4_PSE RT_BIT (4)800 #define X86_CR4_PSE RT_BIT_32(4) 801 801 /** Bit 5 - PAE - Physical Address Extension. */ 802 #define X86_CR4_PAE RT_BIT (5)802 #define X86_CR4_PAE RT_BIT_32(5) 803 803 /** Bit 6 - MCE - Machine-Check Enable. */ 804 #define X86_CR4_MCE RT_BIT (6)804 #define X86_CR4_MCE RT_BIT_32(6) 805 805 /** Bit 7 - PGE - Page Global Enable. */ 806 #define X86_CR4_PGE RT_BIT (7)806 #define X86_CR4_PGE RT_BIT_32(7) 807 807 /** Bit 8 - PCE - Performance-Monitoring Counter Enable. */ 808 #define X86_CR4_PCE RT_BIT (8)808 #define X86_CR4_PCE RT_BIT_32(8) 809 809 /** Bit 9 - OSFXSR - Operating System Support for FXSAVE and FXRSTORE instructions. */ 810 #define X86_CR4_OSFXSR RT_BIT (9)810 #define X86_CR4_OSFXSR RT_BIT_32(9) 811 811 /** Bit 10 - OSXMMEEXCPT - Operating System Support for Unmasked SIMD Floating-Point Exceptions. */ 812 #define X86_CR4_OSXMMEEXCPT RT_BIT (10)812 #define X86_CR4_OSXMMEEXCPT RT_BIT_32(10) 813 813 /** Bit 13 - VMXE - VMX mode is enabled. */ 814 #define X86_CR4_VMXE RT_BIT (13)814 #define X86_CR4_VMXE RT_BIT_32(13) 815 815 /** Bit 14 - SMXE - Safer Mode Extensions Enabled. */ 816 #define X86_CR4_SMXE RT_BIT (14)816 #define X86_CR4_SMXE RT_BIT_32(14) 817 817 /** Bit 17 - PCIDE - Process-Context Identifiers Enabled. */ 818 #define X86_CR4_PCIDE RT_BIT (17)818 #define X86_CR4_PCIDE RT_BIT_32(17) 819 819 /** Bit 18 - OSXSAVE - Operating System Support for XSAVE and processor 820 820 * extended states. */ 821 #define X86_CR4_OSXSAVE RT_BIT (18)821 #define X86_CR4_OSXSAVE RT_BIT_32(18) 822 822 /** Bit 20 - SMEP - Supervisor-mode Execution Prevention enabled. */ 823 #define X86_CR4_SMEP RT_BIT (20)823 #define X86_CR4_SMEP RT_BIT_32(20) 824 824 /** Bit 21 - SMAP - Supervisor-mode Access Prevention enabled. */ 825 #define X86_CR4_SMAP RT_BIT (21)825 #define X86_CR4_SMAP RT_BIT_32(21) 826 826 /** Bit 22 - PKE - Protection Key Enable. */ 827 #define X86_CR4_PKE RT_BIT (22)827 #define X86_CR4_PKE RT_BIT_32(22) 828 828 /** @} */ 829 829 … … 832 832 * @{ */ 833 833 /** Bit 0 - B0 - Breakpoint 0 condition detected. */ 834 #define X86_DR6_B0 RT_BIT (0)834 #define X86_DR6_B0 RT_BIT_32(0) 835 835 /** Bit 1 - B1 - Breakpoint 1 condition detected. */ 836 #define X86_DR6_B1 RT_BIT (1)836 #define X86_DR6_B1 RT_BIT_32(1) 837 837 /** Bit 2 - B2 - Breakpoint 2 condition detected. */ 838 #define X86_DR6_B2 RT_BIT (2)838 #define X86_DR6_B2 RT_BIT_32(2) 839 839 /** Bit 3 - B3 - Breakpoint 3 condition detected. */ 840 #define X86_DR6_B3 RT_BIT (3)840 #define X86_DR6_B3 RT_BIT_32(3) 841 841 /** Mask of all the Bx bits. */ 842 842 #define X86_DR6_B_MASK UINT64_C(0x0000000f) 843 843 /** Bit 13 - BD - Debug register access detected. Corresponds to the X86_DR7_GD bit. */ 844 #define X86_DR6_BD RT_BIT (13)844 #define X86_DR6_BD RT_BIT_32(13) 845 845 /** Bit 14 - BS - Single step */ 846 #define X86_DR6_BS RT_BIT (14)846 #define X86_DR6_BS RT_BIT_32(14) 847 847 /** Bit 15 - BT - Task switch. (TSS T bit.) */ 848 #define X86_DR6_BT RT_BIT (15)848 #define X86_DR6_BT RT_BIT_32(15) 849 849 /** Value of DR6 after powerup/reset. */ 850 850 #define X86_DR6_INIT_VAL UINT64_C(0xFFFF0FF0) … … 864 864 * @{ */ 865 865 /** Bit 0 - L0 - Local breakpoint enable. Cleared on task switch. */ 866 #define X86_DR7_L0 RT_BIT (0)866 #define X86_DR7_L0 RT_BIT_32(0) 867 867 /** Bit 1 - G0 - Global breakpoint enable. Not cleared on task switch. */ 868 #define X86_DR7_G0 RT_BIT (1)868 #define X86_DR7_G0 RT_BIT_32(1) 869 869 /** Bit 2 - L1 - Local breakpoint enable. Cleared on task switch. */ 870 #define X86_DR7_L1 RT_BIT (2)870 #define X86_DR7_L1 RT_BIT_32(2) 871 871 /** Bit 3 - G1 - Global breakpoint enable. Not cleared on task switch. */ 872 #define X86_DR7_G1 RT_BIT (3)872 #define X86_DR7_G1 RT_BIT_32(3) 873 873 /** Bit 4 - L2 - Local breakpoint enable. Cleared on task switch. */ 874 #define X86_DR7_L2 RT_BIT (4)874 #define X86_DR7_L2 RT_BIT_32(4) 875 875 /** Bit 5 - G2 - Global breakpoint enable. Not cleared on task switch. */ 876 #define X86_DR7_G2 RT_BIT (5)876 #define X86_DR7_G2 RT_BIT_32(5) 877 877 /** Bit 6 - L3 - Local breakpoint enable. Cleared on task switch. */ 878 #define X86_DR7_L3 RT_BIT (6)878 #define X86_DR7_L3 RT_BIT_32(6) 879 879 /** Bit 7 - G3 - Global breakpoint enable. Not cleared on task switch. */ 880 #define X86_DR7_G3 RT_BIT (7)880 #define X86_DR7_G3 RT_BIT_32(7) 881 881 /** Bit 8 - LE - Local breakpoint exact. (Not supported (read ignored) by P6 and later.) */ 882 #define X86_DR7_LE RT_BIT (8)882 #define X86_DR7_LE RT_BIT_32(8) 883 883 /** Bit 9 - GE - Local breakpoint exact. (Not supported (read ignored) by P6 and later.) */ 884 #define X86_DR7_GE RT_BIT (9)884 #define X86_DR7_GE RT_BIT_32(9) 885 885 886 886 /** L0, L1, L2, and L3. */ … … 894 894 * instruction is executed. 895 895 * @see http://www.rcollins.org/secrets/DR7.html */ 896 #define X86_DR7_ICE_IR RT_BIT (12)896 #define X86_DR7_ICE_IR RT_BIT_32(12) 897 897 /** Bit 13 - GD - General detect enable. Enables emulators to get exceptions when 898 898 * any DR register is accessed. */ 899 #define X86_DR7_GD RT_BIT (13)899 #define X86_DR7_GD RT_BIT_32(13) 900 900 /** Bit 14 - TR1 (ICE) - Code discontinuity trace for use with ICE on 901 901 * Pentium. */ 902 #define X86_DR7_ICE_TR1 RT_BIT (14)902 #define X86_DR7_ICE_TR1 RT_BIT_32(14) 903 903 /** Bit 15 - TR2 (ICE) - Controls unknown ICE trace feature of the pentium. */ 904 #define X86_DR7_ICE_TR2 RT_BIT (15)904 #define X86_DR7_ICE_TR2 RT_BIT_32(15) 905 905 /** Bit 16 & 17 - R/W0 - Read write field 0. Values X86_DR7_RW_*. */ 906 906 #define X86_DR7_RW0_MASK (3 << 16) … … 921 921 922 922 /** Bits which reads as 1s. */ 923 #define X86_DR7_RA1_MASK (RT_BIT(10))923 #define X86_DR7_RA1_MASK RT_BIT_32(10) 924 924 /** Bits which reads as zeros. These are related to ICE (bits 12, 14, 15). */ 925 925 #define X86_DR7_RAZ_MASK UINT64_C(0x0000d800) … … 1058 1058 /** CPU Feature control. */ 1059 1059 #define MSR_IA32_FEATURE_CONTROL 0x3A 1060 #define MSR_IA32_FEATURE_CONTROL_LOCK RT_BIT (0)1061 #define MSR_IA32_FEATURE_CONTROL_SMX_VMXON RT_BIT (1)1062 #define MSR_IA32_FEATURE_CONTROL_VMXON RT_BIT (2)1060 #define MSR_IA32_FEATURE_CONTROL_LOCK RT_BIT_32(0) 1061 #define MSR_IA32_FEATURE_CONTROL_SMX_VMXON RT_BIT_32(1) 1062 #define MSR_IA32_FEATURE_CONTROL_VMXON RT_BIT_32(2) 1063 1063 1064 1064 /** Per-processor TSC adjust MSR. */ … … 1350 1350 /** @todo document EFER */ 1351 1351 /** Bit 0 - SCE - System call extensions (SYSCALL / SYSRET). (R/W) */ 1352 #define MSR_K6_EFER_SCE RT_BIT (0)1352 #define MSR_K6_EFER_SCE RT_BIT_32(0) 1353 1353 /** Bit 8 - LME - Long mode enabled. (R/W) */ 1354 #define MSR_K6_EFER_LME RT_BIT (8)1354 #define MSR_K6_EFER_LME RT_BIT_32(8) 1355 1355 /** Bit 10 - LMA - Long mode active. (R) */ 1356 #define MSR_K6_EFER_LMA RT_BIT (10)1356 #define MSR_K6_EFER_LMA RT_BIT_32(10) 1357 1357 /** Bit 11 - NXE - No-Execute Page Protection Enabled. (R/W) */ 1358 #define MSR_K6_EFER_NXE RT_BIT (11)1358 #define MSR_K6_EFER_NXE RT_BIT_32(11) 1359 1359 /** Bit 12 - SVME - Secure VM Extension Enabled. (R/W) */ 1360 #define MSR_K6_EFER_SVME RT_BIT (12)1360 #define MSR_K6_EFER_SVME RT_BIT_32(12) 1361 1361 /** Bit 13 - LMSLE - Long Mode Segment Limit Enable. (R/W?) */ 1362 #define MSR_K6_EFER_LMSLE RT_BIT (13)1362 #define MSR_K6_EFER_LMSLE RT_BIT_32(13) 1363 1363 /** Bit 14 - FFXSR - Fast FXSAVE / FXRSTOR (skip XMM*). (R/W) */ 1364 #define MSR_K6_EFER_FFXSR RT_BIT (14)1364 #define MSR_K6_EFER_FFXSR RT_BIT_32(14) 1365 1365 /** Bit 15 - TCE - Translation Cache Extension. (R/W) */ 1366 #define MSR_K6_EFER_TCE RT_BIT (15)1366 #define MSR_K6_EFER_TCE RT_BIT_32(15) 1367 1367 /** K6 STAR - SYSCALL/RET targets. */ 1368 1368 #define MSR_K6_STAR UINT32_C(0xc0000081) … … 1424 1424 #define MSR_K8_INT_PENDING UINT32_C(0xc0010055) 1425 1425 #define MSR_K8_VM_CR UINT32_C(0xc0010114) 1426 #define MSR_K8_VM_CR_SVM_DISABLE RT_BIT (4)1426 #define MSR_K8_VM_CR_SVM_DISABLE RT_BIT_32(4) 1427 1427 1428 1428 #define MSR_K8_IGNNE UINT32_C(0xc0010115) … … 1530 1530 1531 1531 /** Bit 0 - P - Present bit mask. */ 1532 #define X86_PTE_P RT_BIT (0)1532 #define X86_PTE_P RT_BIT_32(0) 1533 1533 /** Bit 1 - R/W - Read (clear) / Write (set) bit mask. */ 1534 #define X86_PTE_RW RT_BIT (1)1534 #define X86_PTE_RW RT_BIT_32(1) 1535 1535 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit mask. */ 1536 #define X86_PTE_US RT_BIT (2)1536 #define X86_PTE_US RT_BIT_32(2) 1537 1537 /** Bit 3 - PWT - Page level write thru bit mask. */ 1538 #define X86_PTE_PWT RT_BIT (3)1538 #define X86_PTE_PWT RT_BIT_32(3) 1539 1539 /** Bit 4 - PCD - Page level cache disable bit mask. */ 1540 #define X86_PTE_PCD RT_BIT (4)1540 #define X86_PTE_PCD RT_BIT_32(4) 1541 1541 /** Bit 5 - A - Access bit mask. */ 1542 #define X86_PTE_A RT_BIT (5)1542 #define X86_PTE_A RT_BIT_32(5) 1543 1543 /** Bit 6 - D - Dirty bit mask. */ 1544 #define X86_PTE_D RT_BIT (6)1544 #define X86_PTE_D RT_BIT_32(6) 1545 1545 /** Bit 7 - PAT - Page Attribute Table index bit mask. Reserved and 0 if not supported. */ 1546 #define X86_PTE_PAT RT_BIT (7)1546 #define X86_PTE_PAT RT_BIT_32(7) 1547 1547 /** Bit 8 - G - Global bit mask. */ 1548 #define X86_PTE_G RT_BIT (8)1548 #define X86_PTE_G RT_BIT_32(8) 1549 1549 1550 1550 /** Bits 9-11 - - Available for use to system software. */ 1551 #define X86_PTE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))1551 #define X86_PTE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 1552 1552 /** Bits 12-31 - - Physical Page number of the next level. */ 1553 1553 #define X86_PTE_PG_MASK ( 0xfffff000 ) … … 1746 1746 */ 1747 1747 /** Bit 0 - P - Present bit. */ 1748 #define X86_PDE_P RT_BIT (0)1748 #define X86_PDE_P RT_BIT_32(0) 1749 1749 /** Bit 1 - R/W - Read (clear) / Write (set) bit. */ 1750 #define X86_PDE_RW RT_BIT (1)1750 #define X86_PDE_RW RT_BIT_32(1) 1751 1751 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit. */ 1752 #define X86_PDE_US RT_BIT (2)1752 #define X86_PDE_US RT_BIT_32(2) 1753 1753 /** Bit 3 - PWT - Page level write thru bit. */ 1754 #define X86_PDE_PWT RT_BIT (3)1754 #define X86_PDE_PWT RT_BIT_32(3) 1755 1755 /** Bit 4 - PCD - Page level cache disable bit. */ 1756 #define X86_PDE_PCD RT_BIT (4)1756 #define X86_PDE_PCD RT_BIT_32(4) 1757 1757 /** Bit 5 - A - Access bit. */ 1758 #define X86_PDE_A RT_BIT (5)1758 #define X86_PDE_A RT_BIT_32(5) 1759 1759 /** Bit 7 - PS - Page size attribute. 1760 1760 * Clear mean 4KB pages, set means large pages (2/4MB). */ 1761 #define X86_PDE_PS RT_BIT (7)1761 #define X86_PDE_PS RT_BIT_32(7) 1762 1762 /** Bits 9-11 - - Available for use to system software. */ 1763 #define X86_PDE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))1763 #define X86_PDE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 1764 1764 /** Bits 12-31 - - Physical Page number of the next level. */ 1765 1765 #define X86_PDE_PG_MASK ( 0xfffff000 ) … … 1866 1866 */ 1867 1867 /** Bit 0 - P - Present bit. */ 1868 #define X86_PDE4M_P RT_BIT (0)1868 #define X86_PDE4M_P RT_BIT_32(0) 1869 1869 /** Bit 1 - R/W - Read (clear) / Write (set) bit. */ 1870 #define X86_PDE4M_RW RT_BIT (1)1870 #define X86_PDE4M_RW RT_BIT_32(1) 1871 1871 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit. */ 1872 #define X86_PDE4M_US RT_BIT (2)1872 #define X86_PDE4M_US RT_BIT_32(2) 1873 1873 /** Bit 3 - PWT - Page level write thru bit. */ 1874 #define X86_PDE4M_PWT RT_BIT (3)1874 #define X86_PDE4M_PWT RT_BIT_32(3) 1875 1875 /** Bit 4 - PCD - Page level cache disable bit. */ 1876 #define X86_PDE4M_PCD RT_BIT (4)1876 #define X86_PDE4M_PCD RT_BIT_32(4) 1877 1877 /** Bit 5 - A - Access bit. */ 1878 #define X86_PDE4M_A RT_BIT (5)1878 #define X86_PDE4M_A RT_BIT_32(5) 1879 1879 /** Bit 6 - D - Dirty bit. */ 1880 #define X86_PDE4M_D RT_BIT (6)1880 #define X86_PDE4M_D RT_BIT_32(6) 1881 1881 /** Bit 7 - PS - Page size attribute. Clear mean 4KB pages, set means large pages (2/4MB). */ 1882 #define X86_PDE4M_PS RT_BIT (7)1882 #define X86_PDE4M_PS RT_BIT_32(7) 1883 1883 /** Bit 8 - G - Global flag. */ 1884 #define X86_PDE4M_G RT_BIT (8)1884 #define X86_PDE4M_G RT_BIT_32(8) 1885 1885 /** Bits 9-11 - AVL - Available for use to system software. */ 1886 #define X86_PDE4M_AVL (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))1886 #define X86_PDE4M_AVL (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 1887 1887 /** Bit 12 - PAT - Page Attribute Table index bit. Reserved and 0 if not supported. */ 1888 #define X86_PDE4M_PAT RT_BIT (12)1888 #define X86_PDE4M_PAT RT_BIT_32(12) 1889 1889 /** Shift to get from X86_PTE_PAT to X86_PDE4M_PAT. */ 1890 1890 #define X86_PDE4M_PAT_SHIFT (12 - 7) … … 2108 2108 */ 2109 2109 /** Bit 0 - P - Present bit. */ 2110 #define X86_PDPE_P RT_BIT (0)2110 #define X86_PDPE_P RT_BIT_32(0) 2111 2111 /** Bit 1 - R/W - Read (clear) / Write (set) bit. Long Mode only. */ 2112 #define X86_PDPE_RW RT_BIT (1)2112 #define X86_PDPE_RW RT_BIT_32(1) 2113 2113 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit. Long Mode only. */ 2114 #define X86_PDPE_US RT_BIT (2)2114 #define X86_PDPE_US RT_BIT_32(2) 2115 2115 /** Bit 3 - PWT - Page level write thru bit. */ 2116 #define X86_PDPE_PWT RT_BIT (3)2116 #define X86_PDPE_PWT RT_BIT_32(3) 2117 2117 /** Bit 4 - PCD - Page level cache disable bit. */ 2118 #define X86_PDPE_PCD RT_BIT (4)2118 #define X86_PDPE_PCD RT_BIT_32(4) 2119 2119 /** Bit 5 - A - Access bit. Long Mode only. */ 2120 #define X86_PDPE_A RT_BIT (5)2120 #define X86_PDPE_A RT_BIT_32(5) 2121 2121 /** Bit 7 - PS - Page size (1GB). Long Mode only. */ 2122 #define X86_PDPE_LM_PS RT_BIT (7)2122 #define X86_PDPE_LM_PS RT_BIT_32(7) 2123 2123 /** Bits 9-11 - - Available for use to system software. */ 2124 #define X86_PDPE_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))2124 #define X86_PDPE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 2125 2125 /** Bits 12-51 - - PAE - Physical Page number of the next level. */ 2126 2126 #define X86_PDPE_PG_MASK UINT64_C(0x000ffffffffff000) … … 2267 2267 */ 2268 2268 /** Bit 0 - P - Present bit. */ 2269 #define X86_PML4E_P RT_BIT (0)2269 #define X86_PML4E_P RT_BIT_32(0) 2270 2270 /** Bit 1 - R/W - Read (clear) / Write (set) bit. */ 2271 #define X86_PML4E_RW RT_BIT (1)2271 #define X86_PML4E_RW RT_BIT_32(1) 2272 2272 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit. */ 2273 #define X86_PML4E_US RT_BIT (2)2273 #define X86_PML4E_US RT_BIT_32(2) 2274 2274 /** Bit 3 - PWT - Page level write thru bit. */ 2275 #define X86_PML4E_PWT RT_BIT (3)2275 #define X86_PML4E_PWT RT_BIT_32(3) 2276 2276 /** Bit 4 - PCD - Page level cache disable bit. */ 2277 #define X86_PML4E_PCD RT_BIT (4)2277 #define X86_PML4E_PCD RT_BIT_32(4) 2278 2278 /** Bit 5 - A - Access bit. */ 2279 #define X86_PML4E_A RT_BIT (5)2279 #define X86_PML4E_A RT_BIT_32(5) 2280 2280 /** Bits 9-11 - - Available for use to system software. */ 2281 #define X86_PML4E_AVL_MASK (RT_BIT (9) | RT_BIT(10) | RT_BIT(11))2281 #define X86_PML4E_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 2282 2282 /** Bits 12-51 - - PAE - Physical Page number of the next level. */ 2283 2283 #define X86_PML4E_PG_MASK UINT64_C(0x000ffffffffff000) … … 2626 2626 * @{ */ 2627 2627 /** Exception Flag: Invalid operation. */ 2628 #define X86_FSW_IE RT_BIT (0)2628 #define X86_FSW_IE RT_BIT_32(0) 2629 2629 /** Exception Flag: Denormalized operand. */ 2630 #define X86_FSW_DE RT_BIT (1)2630 #define X86_FSW_DE RT_BIT_32(1) 2631 2631 /** Exception Flag: Zero divide. */ 2632 #define X86_FSW_ZE RT_BIT (2)2632 #define X86_FSW_ZE RT_BIT_32(2) 2633 2633 /** Exception Flag: Overflow. */ 2634 #define X86_FSW_OE RT_BIT (3)2634 #define X86_FSW_OE RT_BIT_32(3) 2635 2635 /** Exception Flag: Underflow. */ 2636 #define X86_FSW_UE RT_BIT (4)2636 #define X86_FSW_UE RT_BIT_32(4) 2637 2637 /** Exception Flag: Precision. */ 2638 #define X86_FSW_PE RT_BIT (5)2638 #define X86_FSW_PE RT_BIT_32(5) 2639 2639 /** Stack fault. */ 2640 #define X86_FSW_SF RT_BIT (6)2640 #define X86_FSW_SF RT_BIT_32(6) 2641 2641 /** Error summary status. */ 2642 #define X86_FSW_ES RT_BIT (7)2642 #define X86_FSW_ES RT_BIT_32(7) 2643 2643 /** Mask of exceptions flags, excluding the summary bit. */ 2644 2644 #define X86_FSW_XCPT_MASK UINT16_C(0x007f) … … 2646 2646 #define X86_FSW_XCPT_ES_MASK UINT16_C(0x00ff) 2647 2647 /** Condition code 0. */ 2648 #define X86_FSW_C0 RT_BIT (8)2648 #define X86_FSW_C0 RT_BIT_32(8) 2649 2649 /** Condition code 1. */ 2650 #define X86_FSW_C1 RT_BIT (9)2650 #define X86_FSW_C1 RT_BIT_32(9) 2651 2651 /** Condition code 2. */ 2652 #define X86_FSW_C2 RT_BIT (10)2652 #define X86_FSW_C2 RT_BIT_32(10) 2653 2653 /** Top of the stack mask. */ 2654 2654 #define X86_FSW_TOP_MASK UINT16_C(0x3800) … … 2660 2660 #define X86_FSW_TOP_GET(a_uFsw) (((a_uFsw) >> X86_FSW_TOP_SHIFT) & X86_FSW_TOP_SMASK) 2661 2661 /** Condition code 3. */ 2662 #define X86_FSW_C3 RT_BIT (14)2662 #define X86_FSW_C3 RT_BIT_32(14) 2663 2663 /** Mask of exceptions flags, including the summary bit. */ 2664 2664 #define X86_FSW_C_MASK UINT16_C(0x4700) 2665 2665 /** FPU busy. */ 2666 #define X86_FSW_B RT_BIT (15)2666 #define X86_FSW_B RT_BIT_32(15) 2667 2667 /** @} */ 2668 2668 … … 2671 2671 * @{ */ 2672 2672 /** Exception Mask: Invalid operation. */ 2673 #define X86_FCW_IM RT_BIT (0)2673 #define X86_FCW_IM RT_BIT_32(0) 2674 2674 /** Exception Mask: Denormalized operand. */ 2675 #define X86_FCW_DM RT_BIT (1)2675 #define X86_FCW_DM RT_BIT_32(1) 2676 2676 /** Exception Mask: Zero divide. */ 2677 #define X86_FCW_ZM RT_BIT (2)2677 #define X86_FCW_ZM RT_BIT_32(2) 2678 2678 /** Exception Mask: Overflow. */ 2679 #define X86_FCW_OM RT_BIT (3)2679 #define X86_FCW_OM RT_BIT_32(3) 2680 2680 /** Exception Mask: Underflow. */ 2681 #define X86_FCW_UM RT_BIT (4)2681 #define X86_FCW_UM RT_BIT_32(4) 2682 2682 /** Exception Mask: Precision. */ 2683 #define X86_FCW_PM RT_BIT (5)2683 #define X86_FCW_PM RT_BIT_32(5) 2684 2684 /** Mask all exceptions, the value typically loaded (by for instance fninit). 2685 2685 * @remarks This includes reserved bit 6. */ … … 2714 2714 * @{ */ 2715 2715 /** Exception Flag: Invalid operation. */ 2716 #define X86_MXSCR_IE RT_BIT (0)2716 #define X86_MXSCR_IE RT_BIT_32(0) 2717 2717 /** Exception Flag: Denormalized operand. */ 2718 #define X86_MXSCR_DE RT_BIT (1)2718 #define X86_MXSCR_DE RT_BIT_32(1) 2719 2719 /** Exception Flag: Zero divide. */ 2720 #define X86_MXSCR_ZE RT_BIT (2)2720 #define X86_MXSCR_ZE RT_BIT_32(2) 2721 2721 /** Exception Flag: Overflow. */ 2722 #define X86_MXSCR_OE RT_BIT (3)2722 #define X86_MXSCR_OE RT_BIT_32(3) 2723 2723 /** Exception Flag: Underflow. */ 2724 #define X86_MXSCR_UE RT_BIT (4)2724 #define X86_MXSCR_UE RT_BIT_32(4) 2725 2725 /** Exception Flag: Precision. */ 2726 #define X86_MXSCR_PE RT_BIT (5)2726 #define X86_MXSCR_PE RT_BIT_32(5) 2727 2727 2728 2728 /** Denormals are zero. */ 2729 #define X86_MXSCR_DAZ RT_BIT (6)2729 #define X86_MXSCR_DAZ RT_BIT_32(6) 2730 2730 2731 2731 /** Exception Mask: Invalid operation. */ 2732 #define X86_MXSCR_IM RT_BIT (7)2732 #define X86_MXSCR_IM RT_BIT_32(7) 2733 2733 /** Exception Mask: Denormalized operand. */ 2734 #define X86_MXSCR_DM RT_BIT (8)2734 #define X86_MXSCR_DM RT_BIT_32(8) 2735 2735 /** Exception Mask: Zero divide. */ 2736 #define X86_MXSCR_ZM RT_BIT (9)2736 #define X86_MXSCR_ZM RT_BIT_32(9) 2737 2737 /** Exception Mask: Overflow. */ 2738 #define X86_MXSCR_OM RT_BIT (10)2738 #define X86_MXSCR_OM RT_BIT_32(10) 2739 2739 /** Exception Mask: Underflow. */ 2740 #define X86_MXSCR_UM RT_BIT (11)2740 #define X86_MXSCR_UM RT_BIT_32(11) 2741 2741 /** Exception Mask: Precision. */ 2742 #define X86_MXSCR_PM RT_BIT (12)2742 #define X86_MXSCR_PM RT_BIT_32(12) 2743 2743 2744 2744 /** Rounding control mask. */ … … 2754 2754 2755 2755 /** Flush-to-zero for masked underflow. */ 2756 #define X86_MXSCR_FZ RT_BIT (15)2756 #define X86_MXSCR_FZ RT_BIT_32(15) 2757 2757 2758 2758 /** Misaligned Exception Mask (AMD MISALIGNSSE). */ 2759 #define X86_MXSCR_MM RT_BIT (17)2759 #define X86_MXSCR_MM RT_BIT_32(17) 2760 2760 /** @} */ 2761 2761 … … 3449 3449 #define X86_SEL_TYPE_CODE 8 3450 3450 /** Memory(=set)/System(=clear) bit. */ 3451 #define X86_SEL_TYPE_MEMORY RT_BIT (4)3451 #define X86_SEL_TYPE_MEMORY RT_BIT_32(4) 3452 3452 /** Accessed bit. */ 3453 3453 #define X86_SEL_TYPE_ACCESSED 1 … … 3560 3560 * @{ */ 3561 3561 /** Bits 8-11 - TYPE - Descriptor type mask. */ 3562 #define X86_DESC_TYPE_MASK (RT_BIT (8) | RT_BIT(9) | RT_BIT(10) | RT_BIT(11))3562 #define X86_DESC_TYPE_MASK (RT_BIT_32(8) | RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 3563 3563 /** Bit 12 - S - System (=0) or Code/Data (=1). */ 3564 #define X86_DESC_S RT_BIT (12)3564 #define X86_DESC_S RT_BIT_32(12) 3565 3565 /** Bits 13-14 - DPL - Descriptor Privilege Level. */ 3566 #define X86_DESC_DPL (RT_BIT (13) | RT_BIT(14))3566 #define X86_DESC_DPL (RT_BIT_32(13) | RT_BIT_32(14)) 3567 3567 /** Bit 15 - P - Present. */ 3568 #define X86_DESC_P RT_BIT (15)3568 #define X86_DESC_P RT_BIT_32(15) 3569 3569 /** Bit 20 - AVL - Available for system software. */ 3570 #define X86_DESC_AVL RT_BIT (20)3570 #define X86_DESC_AVL RT_BIT_32(20) 3571 3571 /** Bit 22 - DB - Default operation size. 0 = 16 bit, 1 = 32 bit. */ 3572 #define X86_DESC_DB RT_BIT (22)3572 #define X86_DESC_DB RT_BIT_32(22) 3573 3573 /** Bit 23 - G - Granularity of the limit. If set 4KB granularity is 3574 3574 * used, if clear byte. */ 3575 #define X86_DESC_G RT_BIT (23)3575 #define X86_DESC_G RT_BIT_32(23) 3576 3576 /** @} */ 3577 3577 … … 3897 3897 */ 3898 3898 /** Bit 0 - P - Not present (clear) or page level protection (set) fault. */ 3899 #define X86_TRAP_PF_P RT_BIT (0)3899 #define X86_TRAP_PF_P RT_BIT_32(0) 3900 3900 /** Bit 1 - R/W - Read (clear) or write (set) access. */ 3901 #define X86_TRAP_PF_RW RT_BIT (1)3901 #define X86_TRAP_PF_RW RT_BIT_32(1) 3902 3902 /** Bit 2 - U/S - CPU executing in user mode (set) or supervisor mode (clear). */ 3903 #define X86_TRAP_PF_US RT_BIT (2)3903 #define X86_TRAP_PF_US RT_BIT_32(2) 3904 3904 /** Bit 3 - RSVD- Reserved bit violation (set), i.e. reserved bit was set to 1. */ 3905 #define X86_TRAP_PF_RSVD RT_BIT (3)3905 #define X86_TRAP_PF_RSVD RT_BIT_32(3) 3906 3906 /** Bit 4 - I/D - Instruction fetch (set) / Data access (clear) - PAE + NXE. */ 3907 #define X86_TRAP_PF_ID RT_BIT (4)3907 #define X86_TRAP_PF_ID RT_BIT_32(4) 3908 3908 /** Bit 5 - PK - Protection-key violation (AMD64 mode only). */ 3909 #define X86_TRAP_PF_PK RT_BIT (5)3909 #define X86_TRAP_PF_PK RT_BIT_32(5) 3910 3910 /** @} */ 3911 3911
Note:
See TracChangeset
for help on using the changeset viewer.