VirtualBox

Changeset 59961 in vbox for trunk


Ignore:
Timestamp:
Mar 9, 2016 11:05:03 AM (9 years ago)
Author:
vboxsync
Message:

iprt/x86.h: RT_BIT -> RT_BIT_32 (for 16-bit compilers).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r59897 r59961  
    161161 */
    162162/** Bit 0 - CF - Carry flag - Status flag. */
    163 #define X86_EFL_CF          RT_BIT(0)
     163#define X86_EFL_CF          RT_BIT_32(0)
    164164#define X86_EFL_CF_BIT      0
    165165/** Bit 1 - Reserved, reads as 1. */
    166 #define X86_EFL_1           RT_BIT(1)
     166#define X86_EFL_1           RT_BIT_32(1)
    167167/** Bit 2 - PF - Parity flag - Status flag. */
    168 #define X86_EFL_PF          RT_BIT(2)
     168#define X86_EFL_PF          RT_BIT_32(2)
    169169/** 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)
    171171#define X86_EFL_AF_BIT      4
    172172/** Bit 6 - ZF - Zero flag - Status flag. */
    173 #define X86_EFL_ZF          RT_BIT(6)
     173#define X86_EFL_ZF          RT_BIT_32(6)
    174174#define X86_EFL_ZF_BIT      6
    175175/** Bit 7 - SF - Signed flag - Status flag. */
    176 #define X86_EFL_SF          RT_BIT(7)
     176#define X86_EFL_SF          RT_BIT_32(7)
    177177#define X86_EFL_SF_BIT      7
    178178/** Bit 8 - TF - Trap flag - System flag. */
    179 #define X86_EFL_TF          RT_BIT(8)
     179#define X86_EFL_TF          RT_BIT_32(8)
    180180/** Bit 9 - IF - Interrupt flag - System flag. */
    181 #define X86_EFL_IF          RT_BIT(9)
     181#define X86_EFL_IF          RT_BIT_32(9)
    182182/** Bit 10 - DF - Direction flag - Control flag. */
    183 #define X86_EFL_DF          RT_BIT(10)
     183#define X86_EFL_DF          RT_BIT_32(10)
    184184/** Bit 11 - OF - Overflow flag - Status flag. */
    185 #define X86_EFL_OF          RT_BIT(11)
     185#define X86_EFL_OF          RT_BIT_32(11)
    186186#define X86_EFL_OF_BIT      11
    187187/** 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))
    189189/** 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)
    191191/** Bit 16 - RF - Resume flag - System flag. */
    192 #define X86_EFL_RF          RT_BIT(16)
     192#define X86_EFL_RF          RT_BIT_32(16)
    193193/** 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)
    195195/** 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)
    197197/** 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)
    199199/** 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)
    201201/** 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)
    203203/** All live bits. */
    204204#define X86_EFL_LIVE_MASK   UINT32_C(0x003f7fd5)
     
    399399 */
    400400/** 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)
    402402/** 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)
    404404/** 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)
    406406/** 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)
    408408/** 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)
    410410/** 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)
    412412/** 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)
    414414/** 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)
    416416/** 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)
    418418/** 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)
    420420/** 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)
    422422/** ECX Bit 11 - SDBG - Sillicon debug interface (IA32_DEBUG_INTERFACE MSR).
    423423 * 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)
    425425/** 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)
    427427/** 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)
    429429/** 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)
    431431/** 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)
    433433/** 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)
    435435/** 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)
    437437/** 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)
    439439/** 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)
    441441/** 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)
    443443/** 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)
    445445/** 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)
    447447/** 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)
    449449/** 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)
    451451/** 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)
    453453/** 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)
    455455/** 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)
    457457/** 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)
    459459/** 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)
    461461/** 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)
    463463
    464464
    465465/** 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)
    467467/** 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)
    469469/** 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)
    471471/** 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)
    473473/** 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)
    475475/** 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)
    477477/** 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)
    479479#define X86_CPUID_FEATURE_EDX_PAE_BIT   6
    480480/** 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)
    482482/** 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)
    484484/** 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)
    486486/** 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)
    488488/** 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)
    490490/** 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)
    492492/** 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)
    494494/** 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)
    496496/** 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)
    498498/** 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)
    500500/** 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)
    502502/** 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)
    504504/** 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)
    506506/** 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)
    508508/** 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)
    510510/** 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)
    512512/** 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)
    514514/** 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)
    516516/** 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)
    518518/** 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)
    520520/** 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)
    522522/** 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)
    524524/** @} */
    525525
     
    529529 */
    530530/** 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)
    532532/** 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)
    534534/** @} */
    535535
     
    540540 */
    541541/** 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)
    543543/** 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)
    545545/** 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)
    547547/** 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)
    549549/** 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)
    551551/** 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)
    553553/** 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)
    555555/** 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)
    557557/** 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)
    559559/** 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)
    561561/** 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)
    563563/** 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)
    565565/** 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)
    567567/** 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)
    569569/** 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)
    571571/** 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)
    573573/** 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)
    575575/** 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)
    577577/** 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)
    579579/** 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)
    581581/** 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)
    583583/** 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)
    585585/** 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)
    587587/** 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)
    589589
    590590/** 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)
    592592/** @} */
    593593
     
    598598 */
    599599/** 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)
    601601
    602602/** 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)
    604604/** 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)
    606606/** 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)
    608608/** 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)
    610610/** 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)
    612612/** @}*/
    613613
     
    617617 */
    618618/** 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)
    620620/** 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)
    622622/** 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)
    624624/** 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)
    626626/** 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)
    628628/** 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)
    630630/** 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)
    632632/** 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)
    634634/** 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)
    636636/** 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)
    638638/** 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)
    640640/** 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)
    642642/** 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)
    644644/** 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)
    646646/** 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)
    648648/** 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)
    650650/** 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)
    652652/** 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)
    654654/** 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)
    656656/** 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)
    658658/** 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)
    660660/** 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)
    662662
    663663/** 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)
    665665/** 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)
    667667/** 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)
    669669/** 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)
    671671/** 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)
    673673/** 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)
    675675/** 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)
    677677/** 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)
    679679/** 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)
    681681/** 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)
    683683/** 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)
    685685/** 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)
    687687/** 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)
    689689/** 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)
    691691/** 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)
    693693/** Bit 19 - NodeId - Indicates support for
    694694 * 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)
    696696/** 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)
    698698/** 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)
    700700/** @} */
    701701
     
    706706 */
    707707/** 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)
    709709/** 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)
    711711/** 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)
    713713/** 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)
    715715/** 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)
    717717/** 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)
    719719/** 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)
    721721/** 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)
    723723/** 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)
    725725/** 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)
    727727/** 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)
    729729/** 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)
    731731/** 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)
    733733/** @} */
    734734
     
    737737 * @{ */
    738738/** 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)
    741741/** 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)
    744744/** 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)
    747747/** 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)
    750750/** 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)
    753753/** 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)
    756756/** 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)
    759759/** 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)
    762762/** 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)
    765765/** 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)
    768768/** 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)
    771771/** @} */
    772772
     
    775775 * @{ */
    776776/** Bit 3 - PWT - Page-level Writes Transparent. */
    777 #define X86_CR3_PWT                         RT_BIT(3)
     777#define X86_CR3_PWT                         RT_BIT_32(3)
    778778/** Bit 4 - PCD - Page-level Cache Disable. */
    779 #define X86_CR3_PCD                         RT_BIT(4)
     779#define X86_CR3_PCD                         RT_BIT_32(4)
    780780/** Bits 12-31 - - Page directory page number. */
    781781#define X86_CR3_PAGE_MASK                   (0xfffff000)
     
    790790 * @{ */
    791791/** Bit 0 - VME - Virtual-8086 Mode Extensions. */
    792 #define X86_CR4_VME                         RT_BIT(0)
     792#define X86_CR4_VME                         RT_BIT_32(0)
    793793/** Bit 1 - PVI - Protected-Mode Virtual Interrupts. */
    794 #define X86_CR4_PVI                         RT_BIT(1)
     794#define X86_CR4_PVI                         RT_BIT_32(1)
    795795/** Bit 2 - TSD - Time Stamp Disable. */
    796 #define X86_CR4_TSD                         RT_BIT(2)
     796#define X86_CR4_TSD                         RT_BIT_32(2)
    797797/** Bit 3 - DE - Debugging Extensions. */
    798 #define X86_CR4_DE                          RT_BIT(3)
     798#define X86_CR4_DE                          RT_BIT_32(3)
    799799/** Bit 4 - PSE - Page Size Extension. */
    800 #define X86_CR4_PSE                         RT_BIT(4)
     800#define X86_CR4_PSE                         RT_BIT_32(4)
    801801/** Bit 5 - PAE - Physical Address Extension. */
    802 #define X86_CR4_PAE                         RT_BIT(5)
     802#define X86_CR4_PAE                         RT_BIT_32(5)
    803803/** Bit 6 - MCE - Machine-Check Enable. */
    804 #define X86_CR4_MCE                         RT_BIT(6)
     804#define X86_CR4_MCE                         RT_BIT_32(6)
    805805/** Bit 7 - PGE - Page Global Enable. */
    806 #define X86_CR4_PGE                         RT_BIT(7)
     806#define X86_CR4_PGE                         RT_BIT_32(7)
    807807/** Bit 8 - PCE - Performance-Monitoring Counter Enable. */
    808 #define X86_CR4_PCE                         RT_BIT(8)
     808#define X86_CR4_PCE                         RT_BIT_32(8)
    809809/** 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)
    811811/** 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)
    813813/** Bit 13 - VMXE - VMX mode is enabled. */
    814 #define X86_CR4_VMXE                        RT_BIT(13)
     814#define X86_CR4_VMXE                        RT_BIT_32(13)
    815815/** Bit 14 - SMXE - Safer Mode Extensions Enabled. */
    816 #define X86_CR4_SMXE                        RT_BIT(14)
     816#define X86_CR4_SMXE                        RT_BIT_32(14)
    817817/** Bit 17 - PCIDE - Process-Context Identifiers Enabled. */
    818 #define X86_CR4_PCIDE                       RT_BIT(17)
     818#define X86_CR4_PCIDE                       RT_BIT_32(17)
    819819/** Bit 18 - OSXSAVE - Operating System Support for XSAVE and processor
    820820 * extended states. */
    821 #define X86_CR4_OSXSAVE                     RT_BIT(18)
     821#define X86_CR4_OSXSAVE                     RT_BIT_32(18)
    822822/** 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)
    824824/** 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)
    826826/** Bit 22 - PKE - Protection Key Enable. */
    827 #define X86_CR4_PKE                         RT_BIT(22)
     827#define X86_CR4_PKE                         RT_BIT_32(22)
    828828/** @} */
    829829
     
    832832 * @{ */
    833833/** Bit 0 - B0 - Breakpoint 0 condition detected. */
    834 #define X86_DR6_B0                          RT_BIT(0)
     834#define X86_DR6_B0                          RT_BIT_32(0)
    835835/** Bit 1 - B1 - Breakpoint 1 condition detected. */
    836 #define X86_DR6_B1                          RT_BIT(1)
     836#define X86_DR6_B1                          RT_BIT_32(1)
    837837/** Bit 2 - B2 - Breakpoint 2 condition detected. */
    838 #define X86_DR6_B2                          RT_BIT(2)
     838#define X86_DR6_B2                          RT_BIT_32(2)
    839839/** Bit 3 - B3 - Breakpoint 3 condition detected. */
    840 #define X86_DR6_B3                          RT_BIT(3)
     840#define X86_DR6_B3                          RT_BIT_32(3)
    841841/** Mask of all the Bx bits. */
    842842#define X86_DR6_B_MASK                      UINT64_C(0x0000000f)
    843843/** 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)
    845845/** Bit 14 - BS - Single step */
    846 #define X86_DR6_BS                          RT_BIT(14)
     846#define X86_DR6_BS                          RT_BIT_32(14)
    847847/** 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)
    849849/** Value of DR6 after powerup/reset. */
    850850#define X86_DR6_INIT_VAL                    UINT64_C(0xFFFF0FF0)
     
    864864 * @{ */
    865865/** 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)
    867867/** 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)
    869869/** 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)
    871871/** 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)
    873873/** 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)
    875875/** 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)
    877877/** 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)
    879879/** 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)
    881881/** 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)
    883883/** 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)
    885885
    886886/** L0, L1, L2, and L3.  */
     
    894894 * instruction is executed.
    895895 * @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)
    897897/** Bit 13 - GD - General detect enable. Enables emulators to get exceptions when
    898898 * any DR register is accessed. */
    899 #define X86_DR7_GD                          RT_BIT(13)
     899#define X86_DR7_GD                          RT_BIT_32(13)
    900900/** Bit 14 - TR1 (ICE) - Code discontinuity trace for use with ICE on
    901901 *  Pentium. */
    902 #define X86_DR7_ICE_TR1                     RT_BIT(14)
     902#define X86_DR7_ICE_TR1                     RT_BIT_32(14)
    903903/** 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)
    905905/** Bit 16 & 17 - R/W0 - Read write field 0. Values X86_DR7_RW_*. */
    906906#define X86_DR7_RW0_MASK                    (3 << 16)
     
    921921
    922922/** Bits which reads as 1s. */
    923 #define X86_DR7_RA1_MASK                    (RT_BIT(10))
     923#define X86_DR7_RA1_MASK                    RT_BIT_32(10)
    924924/** Bits which reads as zeros.  These are related to ICE (bits 12, 14, 15). */
    925925#define X86_DR7_RAZ_MASK                    UINT64_C(0x0000d800)
     
    10581058/** CPU Feature control. */
    10591059#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)
    10631063
    10641064/** Per-processor TSC adjust MSR. */
     
    13501350/** @todo document EFER */
    13511351/** 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)
    13531353/** 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)
    13551355/** 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)
    13571357/** 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)
    13591359/** 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)
    13611361/** 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)
    13631363/** 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)
    13651365/** 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)
    13671367/** K6 STAR - SYSCALL/RET targets. */
    13681368#define MSR_K6_STAR                         UINT32_C(0xc0000081)
     
    14241424#define MSR_K8_INT_PENDING                  UINT32_C(0xc0010055)
    14251425#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)
    14271427
    14281428#define MSR_K8_IGNNE                        UINT32_C(0xc0010115)
     
    15301530
    15311531/** Bit 0 -  P  - Present bit mask. */
    1532 #define X86_PTE_P                           RT_BIT(0)
     1532#define X86_PTE_P                           RT_BIT_32(0)
    15331533/** 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)
    15351535/** 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)
    15371537/** 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)
    15391539/** 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)
    15411541/** Bit 5 -  A  - Access bit mask. */
    1542 #define X86_PTE_A                           RT_BIT(5)
     1542#define X86_PTE_A                           RT_BIT_32(5)
    15431543/** Bit 6 -  D  - Dirty bit mask. */
    1544 #define X86_PTE_D                           RT_BIT(6)
     1544#define X86_PTE_D                           RT_BIT_32(6)
    15451545/** 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)
    15471547/** Bit 8 -  G  - Global bit mask. */
    1548 #define X86_PTE_G                           RT_BIT(8)
     1548#define X86_PTE_G                           RT_BIT_32(8)
    15491549
    15501550/** 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))
    15521552/** Bits 12-31 - - Physical Page number of the next level. */
    15531553#define X86_PTE_PG_MASK                     ( 0xfffff000 )
     
    17461746 */
    17471747/** Bit 0 -  P  - Present bit. */
    1748 #define X86_PDE_P                           RT_BIT(0)
     1748#define X86_PDE_P                           RT_BIT_32(0)
    17491749/** 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)
    17511751/** 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)
    17531753/** 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)
    17551755/** 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)
    17571757/** Bit 5 -  A  - Access bit. */
    1758 #define X86_PDE_A                           RT_BIT(5)
     1758#define X86_PDE_A                           RT_BIT_32(5)
    17591759/** Bit 7 - PS  - Page size attribute.
    17601760 * 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)
    17621762/** 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))
    17641764/** Bits 12-31 -  - Physical Page number of the next level. */
    17651765#define X86_PDE_PG_MASK                     ( 0xfffff000 )
     
    18661866 */
    18671867/** Bit 0 -  P  - Present bit. */
    1868 #define X86_PDE4M_P                         RT_BIT(0)
     1868#define X86_PDE4M_P                         RT_BIT_32(0)
    18691869/** 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)
    18711871/** 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)
    18731873/** 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)
    18751875/** 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)
    18771877/** Bit 5 -  A  - Access bit. */
    1878 #define X86_PDE4M_A                         RT_BIT(5)
     1878#define X86_PDE4M_A                         RT_BIT_32(5)
    18791879/** Bit 6 -  D  - Dirty bit. */
    1880 #define X86_PDE4M_D                         RT_BIT(6)
     1880#define X86_PDE4M_D                         RT_BIT_32(6)
    18811881/** 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)
    18831883/** Bit 8 -  G  - Global flag. */
    1884 #define X86_PDE4M_G                         RT_BIT(8)
     1884#define X86_PDE4M_G                         RT_BIT_32(8)
    18851885/** 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))
    18871887/** 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)
    18891889/** Shift to get from X86_PTE_PAT to X86_PDE4M_PAT. */
    18901890#define X86_PDE4M_PAT_SHIFT                 (12 - 7)
     
    21082108 */
    21092109/** Bit 0 -  P  - Present bit. */
    2110 #define X86_PDPE_P                          RT_BIT(0)
     2110#define X86_PDPE_P                          RT_BIT_32(0)
    21112111/** 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)
    21132113/** 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)
    21152115/** 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)
    21172117/** 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)
    21192119/** 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)
    21212121/** 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)
    21232123/** 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))
    21252125/** Bits 12-51 - - PAE - Physical Page number of the next level. */
    21262126#define X86_PDPE_PG_MASK                    UINT64_C(0x000ffffffffff000)
     
    22672267 */
    22682268/** Bit 0 -  P  - Present bit. */
    2269 #define X86_PML4E_P                         RT_BIT(0)
     2269#define X86_PML4E_P                         RT_BIT_32(0)
    22702270/** 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)
    22722272/** 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)
    22742274/** 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)
    22762276/** 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)
    22782278/** Bit 5 -  A  - Access bit. */
    2279 #define X86_PML4E_A                         RT_BIT(5)
     2279#define X86_PML4E_A                         RT_BIT_32(5)
    22802280/** 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))
    22822282/** Bits 12-51 - - PAE - Physical Page number of the next level. */
    22832283#define X86_PML4E_PG_MASK                   UINT64_C(0x000ffffffffff000)
     
    26262626 * @{ */
    26272627/** Exception Flag: Invalid operation.  */
    2628 #define X86_FSW_IE          RT_BIT(0)
     2628#define X86_FSW_IE          RT_BIT_32(0)
    26292629/** Exception Flag: Denormalized operand.  */
    2630 #define X86_FSW_DE          RT_BIT(1)
     2630#define X86_FSW_DE          RT_BIT_32(1)
    26312631/** Exception Flag: Zero divide.  */
    2632 #define X86_FSW_ZE          RT_BIT(2)
     2632#define X86_FSW_ZE          RT_BIT_32(2)
    26332633/** Exception Flag: Overflow.  */
    2634 #define X86_FSW_OE          RT_BIT(3)
     2634#define X86_FSW_OE          RT_BIT_32(3)
    26352635/** Exception Flag: Underflow.  */
    2636 #define X86_FSW_UE          RT_BIT(4)
     2636#define X86_FSW_UE          RT_BIT_32(4)
    26372637/** Exception Flag: Precision.  */
    2638 #define X86_FSW_PE          RT_BIT(5)
     2638#define X86_FSW_PE          RT_BIT_32(5)
    26392639/** Stack fault. */
    2640 #define X86_FSW_SF          RT_BIT(6)
     2640#define X86_FSW_SF          RT_BIT_32(6)
    26412641/** Error summary status. */
    2642 #define X86_FSW_ES          RT_BIT(7)
     2642#define X86_FSW_ES          RT_BIT_32(7)
    26432643/** Mask of exceptions flags, excluding the summary bit. */
    26442644#define X86_FSW_XCPT_MASK   UINT16_C(0x007f)
     
    26462646#define X86_FSW_XCPT_ES_MASK UINT16_C(0x00ff)
    26472647/** Condition code 0. */
    2648 #define X86_FSW_C0          RT_BIT(8)
     2648#define X86_FSW_C0          RT_BIT_32(8)
    26492649/** Condition code 1. */
    2650 #define X86_FSW_C1          RT_BIT(9)
     2650#define X86_FSW_C1          RT_BIT_32(9)
    26512651/** Condition code 2. */
    2652 #define X86_FSW_C2          RT_BIT(10)
     2652#define X86_FSW_C2          RT_BIT_32(10)
    26532653/** Top of the stack mask. */
    26542654#define X86_FSW_TOP_MASK    UINT16_C(0x3800)
     
    26602660#define X86_FSW_TOP_GET(a_uFsw) (((a_uFsw) >> X86_FSW_TOP_SHIFT) & X86_FSW_TOP_SMASK)
    26612661/** Condition code 3. */
    2662 #define X86_FSW_C3          RT_BIT(14)
     2662#define X86_FSW_C3          RT_BIT_32(14)
    26632663/** Mask of exceptions flags, including the summary bit. */
    26642664#define X86_FSW_C_MASK      UINT16_C(0x4700)
    26652665/** FPU busy. */
    2666 #define X86_FSW_B           RT_BIT(15)
     2666#define X86_FSW_B           RT_BIT_32(15)
    26672667/** @} */
    26682668
     
    26712671 * @{ */
    26722672/** Exception Mask: Invalid operation.  */
    2673 #define X86_FCW_IM          RT_BIT(0)
     2673#define X86_FCW_IM          RT_BIT_32(0)
    26742674/** Exception Mask: Denormalized operand.  */
    2675 #define X86_FCW_DM          RT_BIT(1)
     2675#define X86_FCW_DM          RT_BIT_32(1)
    26762676/** Exception Mask: Zero divide.  */
    2677 #define X86_FCW_ZM          RT_BIT(2)
     2677#define X86_FCW_ZM          RT_BIT_32(2)
    26782678/** Exception Mask: Overflow.  */
    2679 #define X86_FCW_OM          RT_BIT(3)
     2679#define X86_FCW_OM          RT_BIT_32(3)
    26802680/** Exception Mask: Underflow.  */
    2681 #define X86_FCW_UM          RT_BIT(4)
     2681#define X86_FCW_UM          RT_BIT_32(4)
    26822682/** Exception Mask: Precision.  */
    2683 #define X86_FCW_PM          RT_BIT(5)
     2683#define X86_FCW_PM          RT_BIT_32(5)
    26842684/** Mask all exceptions, the value typically loaded (by for instance fninit).
    26852685 * @remarks This includes reserved bit 6.  */
     
    27142714 * @{ */
    27152715/** Exception Flag: Invalid operation.  */
    2716 #define X86_MXSCR_IE          RT_BIT(0)
     2716#define X86_MXSCR_IE          RT_BIT_32(0)
    27172717/** Exception Flag: Denormalized operand.  */
    2718 #define X86_MXSCR_DE          RT_BIT(1)
     2718#define X86_MXSCR_DE          RT_BIT_32(1)
    27192719/** Exception Flag: Zero divide.  */
    2720 #define X86_MXSCR_ZE          RT_BIT(2)
     2720#define X86_MXSCR_ZE          RT_BIT_32(2)
    27212721/** Exception Flag: Overflow.  */
    2722 #define X86_MXSCR_OE          RT_BIT(3)
     2722#define X86_MXSCR_OE          RT_BIT_32(3)
    27232723/** Exception Flag: Underflow.  */
    2724 #define X86_MXSCR_UE          RT_BIT(4)
     2724#define X86_MXSCR_UE          RT_BIT_32(4)
    27252725/** Exception Flag: Precision.  */
    2726 #define X86_MXSCR_PE          RT_BIT(5)
     2726#define X86_MXSCR_PE          RT_BIT_32(5)
    27272727
    27282728/** Denormals are zero. */
    2729 #define X86_MXSCR_DAZ         RT_BIT(6)
     2729#define X86_MXSCR_DAZ         RT_BIT_32(6)
    27302730
    27312731/** Exception Mask: Invalid operation. */
    2732 #define X86_MXSCR_IM          RT_BIT(7)
     2732#define X86_MXSCR_IM          RT_BIT_32(7)
    27332733/** Exception Mask: Denormalized operand. */
    2734 #define X86_MXSCR_DM          RT_BIT(8)
     2734#define X86_MXSCR_DM          RT_BIT_32(8)
    27352735/** Exception Mask: Zero divide.  */
    2736 #define X86_MXSCR_ZM          RT_BIT(9)
     2736#define X86_MXSCR_ZM          RT_BIT_32(9)
    27372737/** Exception Mask: Overflow.  */
    2738 #define X86_MXSCR_OM          RT_BIT(10)
     2738#define X86_MXSCR_OM          RT_BIT_32(10)
    27392739/** Exception Mask: Underflow.  */
    2740 #define X86_MXSCR_UM          RT_BIT(11)
     2740#define X86_MXSCR_UM          RT_BIT_32(11)
    27412741/** Exception Mask: Precision.  */
    2742 #define X86_MXSCR_PM          RT_BIT(12)
     2742#define X86_MXSCR_PM          RT_BIT_32(12)
    27432743
    27442744/** Rounding control mask. */
     
    27542754
    27552755/** Flush-to-zero for masked underflow.  */
    2756 #define X86_MXSCR_FZ          RT_BIT(15)
     2756#define X86_MXSCR_FZ          RT_BIT_32(15)
    27572757
    27582758/** Misaligned Exception Mask (AMD MISALIGNSSE).  */
    2759 #define X86_MXSCR_MM          RT_BIT(17)
     2759#define X86_MXSCR_MM          RT_BIT_32(17)
    27602760/** @} */
    27612761
     
    34493449#define X86_SEL_TYPE_CODE                   8
    34503450/** Memory(=set)/System(=clear) bit. */
    3451 #define X86_SEL_TYPE_MEMORY                 RT_BIT(4)
     3451#define X86_SEL_TYPE_MEMORY                 RT_BIT_32(4)
    34523452/** Accessed bit. */
    34533453#define X86_SEL_TYPE_ACCESSED               1
     
    35603560 * @{ */
    35613561/** 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))
    35633563/** 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)
    35653565/** 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))
    35673567/** Bit 15 - P - Present. */
    3568 #define X86_DESC_P                          RT_BIT(15)
     3568#define X86_DESC_P                          RT_BIT_32(15)
    35693569/** Bit 20 - AVL - Available for system software. */
    3570 #define X86_DESC_AVL                        RT_BIT(20)
     3570#define X86_DESC_AVL                        RT_BIT_32(20)
    35713571/** 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)
    35733573/** Bit 23 - G - Granularity of the limit. If set 4KB granularity is
    35743574 * used, if clear byte. */
    3575 #define X86_DESC_G                          RT_BIT(23)
     3575#define X86_DESC_G                          RT_BIT_32(23)
    35763576/** @} */
    35773577
     
    38973897 */
    38983898/** 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)
    39003900/** 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)
    39023902/** 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)
    39043904/** 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)
    39063906/** 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)
    39083908/** 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)
    39103910/** @} */
    39113911
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette