x86.mac revision 73977ab417566ee6bc70654b77d1402ca47d6b67
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync%ifndef ___iprt_x86_h
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define ___iprt_x86_h
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync%ifndef VBOX_FOR_DTRACE_LIB
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%ifdef RT_OS_SOLARIS
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%ifndef VBOX_FOR_DTRACE_LIB
bd8e360cd1db83dcb2694ea9122ce3bc5bae678avboxsync%ifndef VBOX_FOR_DTRACE_LIB
bd8e360cd1db83dcb2694ea9122ce3bc5bae678avboxsync%ifndef VBOX_FOR_DTRACE_LIB
bd8e360cd1db83dcb2694ea9122ce3bc5bae678avboxsync%define X86_EFL_CF RT_BIT(0)
bd8e360cd1db83dcb2694ea9122ce3bc5bae678avboxsync%define X86_EFL_CF_BIT 0
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync%define X86_EFL_1 RT_BIT(1)
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync%define X86_EFL_PF RT_BIT(2)
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync%define X86_EFL_AF RT_BIT(4)
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync%define X86_EFL_AF_BIT 4
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_ZF RT_BIT(6)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_ZF_BIT 6
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_SF RT_BIT(7)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_SF_BIT 7
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_TF RT_BIT(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_IF RT_BIT(9)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_EFL_DF RT_BIT(10)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_EFL_OF RT_BIT(11)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_EFL_OF_BIT 11
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_EFL_IOPL (RT_BIT(12) | RT_BIT(13))
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_NT RT_BIT(14)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_RF RT_BIT(16)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_EFL_VM RT_BIT(17)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_EFL_AC RT_BIT(18)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_VIF RT_BIT(19)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_VIP RT_BIT(20)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_ID RT_BIT(21)
87b2fb3f8283472ba7010aedbf2b4dc12302155cvboxsync%define X86_EFL_LIVE_MASK 0x003f7fd5
87b2fb3f8283472ba7010aedbf2b4dc12302155cvboxsync%define X86_EFL_RA1_MASK RT_BIT_32(1)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_IOPL_SHIFT 12
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_GET_IOPL(efl) (((efl) >> X86_EFL_IOPL_SHIFT) & 3)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define X86_EFL_POPF_BITS ( X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_TF | X86_EFL_IF \
11a862be79fe123488bccca60c06e92cdbfec6e8vboxsync | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL | X86_EFL_NT | X86_EFL_AC | X86_EFL_ID )
87b2fb3f8283472ba7010aedbf2b4dc12302155cvboxsync%define X86_EFL_STATUS_BITS ( X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_OF )
e38719852d98638514dba23fbacf53ad11361d6avboxsync%ifndef VBOX_FOR_DTRACE_LIB
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%ifndef VBOX_FOR_DTRACE_LIB
d6aa6429f99fb7648883eb612f8a52b9aaf3bff4vboxsync%define X86_CPUID_VENDOR_INTEL_EBX 0x756e6547
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_VENDOR_INTEL_ECX 0x6c65746e
3598f07e0e71a448a04d478320a9ca6314160ff6vboxsync%define X86_CPUID_VENDOR_INTEL_EDX 0x49656e69
083dd76e9fd7a829b1ed67ffc9003276643e7db1vboxsync%define X86_CPUID_VENDOR_AMD_EBX 0x68747541
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_VENDOR_AMD_ECX 0x444d4163
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_VENDOR_AMD_EDX 0x69746e65
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_VENDOR_VIA_EBX 0x746e6543
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_VENDOR_VIA_ECX 0x736c7561
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_VENDOR_VIA_EDX 0x48727561
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_FEATURE_ECX_SSE3 RT_BIT(0)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CPUID_FEATURE_ECX_PCLMUL RT_BIT(1)
8ab60c04baaf509b2aaae2a260adaf1281aaac03vboxsync%define X86_CPUID_FEATURE_ECX_DTES64 RT_BIT(2)
8ab60c04baaf509b2aaae2a260adaf1281aaac03vboxsync%define X86_CPUID_FEATURE_ECX_MONITOR RT_BIT(3)
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define X86_CPUID_FEATURE_ECX_CPLDS RT_BIT(4)
6edb4183bc898fddcd0987b6c5c3903b8246fe45vboxsync%define X86_CPUID_FEATURE_ECX_VMX RT_BIT(5)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CPUID_FEATURE_ECX_SMX RT_BIT(6)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_ECX_EST RT_BIT(7)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_ECX_TM2 RT_BIT(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_ECX_SSSE3 RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_ECX_CNTXID RT_BIT(10)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_SDBG RT_BIT(11)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_FMA RT_BIT(12)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_ECX_CX16 RT_BIT(13)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_ECX_TPRUPDATE RT_BIT(14)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_PDCM RT_BIT(15)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_ECX_PCID RT_BIT(17)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_DCA RT_BIT(18)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_ECX_SSE4_1 RT_BIT(19)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_SSE4_2 RT_BIT(20)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_X2APIC RT_BIT(21)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_MOVBE RT_BIT(22)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_ECX_POPCNT RT_BIT(23)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_ECX_TSCDEADL RT_BIT(24)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_ECX_AES RT_BIT(25)
4ad933b349952e43d0b6ce21b3f5e2833ca04e85vboxsync%define X86_CPUID_FEATURE_ECX_XSAVE RT_BIT(26)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_FEATURE_ECX_OSXSAVE RT_BIT(27)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_FEATURE_ECX_AVX RT_BIT(28)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_FEATURE_ECX_F16C RT_BIT(29)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_FEATURE_ECX_RDRAND RT_BIT(30)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CPUID_FEATURE_ECX_HVP RT_BIT(31)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_EDX_FPU RT_BIT(0)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_EDX_VME RT_BIT(1)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_DE RT_BIT(2)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_EDX_PSE RT_BIT(3)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_TSC RT_BIT(4)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_MSR RT_BIT(5)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_EDX_PAE RT_BIT(6)
98da2c2cca8786e117ad93a31c6b2c6c1c3cdc78vboxsync%define X86_CPUID_FEATURE_EDX_MCE RT_BIT(7)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_CX8 RT_BIT(8)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_APIC RT_BIT(9)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_SEP RT_BIT(11)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_MTRR RT_BIT(12)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_PGE RT_BIT(13)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_MCA RT_BIT(14)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_CMOV RT_BIT(15)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_CPUID_FEATURE_EDX_PAT RT_BIT(16)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_EDX_PSE36 RT_BIT(17)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_PSN RT_BIT(18)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_EDX_CLFSH RT_BIT(19)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_DS RT_BIT(21)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_FEATURE_EDX_ACPI RT_BIT(22)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CPUID_FEATURE_EDX_MMX RT_BIT(23)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_FXSR RT_BIT(24)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_EDX_SSE RT_BIT(25)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_SSE2 RT_BIT(26)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_SS RT_BIT(27)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_HTT RT_BIT(28)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_FEATURE_EDX_TM RT_BIT(29)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_FEATURE_EDX_PBE RT_BIT(31)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_MWAIT_ECX_EXT RT_BIT(0)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_MWAIT_ECX_BREAKIRQIF0 RT_BIT(1)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_FSGSBASE RT_BIT(0)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_TSC_ADJUST RT_BIT(1)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_BMI1 RT_BIT(3)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_HLE RT_BIT(4)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_AVX2 RT_BIT(5)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_STEXT_FEATURE_EBX_SMEP RT_BIT(7)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_BMI2 RT_BIT(8)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_ERMS RT_BIT(9)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_INVPCID RT_BIT(10)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_RTM RT_BIT(11)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_PQM RT_BIT(12)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_DEPR_FPU_CS_DS RT_BIT(13)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_MPE RT_BIT(14)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_PQE RT_BIT(15)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_AVX512F RT_BIT(16)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_RDSEED RT_BIT(18)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_ADX RT_BIT(19)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_STEXT_FEATURE_EBX_SMAP RT_BIT(20)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_CLFLUSHOPT RT_BIT(23)
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_INTEL_PT RT_BIT(25)
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_AVX512PF RT_BIT(26)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_AVX512ER RT_BIT(27)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_AVX512CD RT_BIT(28)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_EBX_SHA RT_BIT(29)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1 RT_BIT(0)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_EXT_FEATURE_ECX_LAHF_SAHF RT_BIT(0)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_EXT_FEATURE_EDX_SYSCALL RT_BIT(11)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_EXT_FEATURE_EDX_NX RT_BIT(20)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_EXT_FEATURE_EDX_PAGE1GB RT_BIT(26)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_EXT_FEATURE_EDX_RDTSCP RT_BIT(27)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_EXT_FEATURE_EDX_LONG_MODE RT_BIT(29)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_FPU RT_BIT(0)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_VME RT_BIT(1)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_DE RT_BIT(2)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_PSE RT_BIT(3)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_TSC RT_BIT(4)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_MSR RT_BIT(5)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_PAE RT_BIT(6)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_MCE RT_BIT(7)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_CX8 RT_BIT(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_APIC RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_MTRR RT_BIT(12)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_PGE RT_BIT(13)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_MCA RT_BIT(14)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_CMOV RT_BIT(15)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_PAT RT_BIT(16)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_PSE36 RT_BIT(17)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_AXMMX RT_BIT(22)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_MMX RT_BIT(23)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_FXSR RT_BIT(24)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_FFXSR RT_BIT(25)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_3DNOW_EX RT_BIT(30)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_EDX_3DNOW RT_BIT(31)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_CMPL RT_BIT(1)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_SVM RT_BIT(2)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_EXT_APIC RT_BIT(3)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_CR8L RT_BIT(4)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_ABM RT_BIT(5)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_SSE4A RT_BIT(6)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_MISALNSSE RT_BIT(7)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_3DNOWPRF RT_BIT(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_OSVW RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_IBS RT_BIT(10)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_XOP RT_BIT(11)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_SKINIT RT_BIT(12)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_WDT RT_BIT(13)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_LWP RT_BIT(15)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_FEATURE_ECX_FMA4 RT_BIT(16)
4faf92053d9cec5599c0ab8577231df0f7d615b3vboxsync%define X86_CPUID_AMD_FEATURE_ECX_NODEID RT_BIT(19)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_AMD_FEATURE_ECX_TBM RT_BIT(21)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_AMD_FEATURE_ECX_TOPOEXT RT_BIT(22)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_TS RT_BIT(0)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_FID RT_BIT(1)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_VID RT_BIT(2)
6edb4183bc898fddcd0987b6c5c3903b8246fe45vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_TTP RT_BIT(3)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_TM RT_BIT(4)
4faf92053d9cec5599c0ab8577231df0f7d615b3vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_STC RT_BIT(5)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_MC RT_BIT(6)
83b8ea36fb307b6264bc47ae9f7f67b1d32e3388vboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE RT_BIT(7)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR RT_BIT(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_CPB RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_EFRO RT_BIT(10)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_PFI RT_BIT(11)
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_CPUID_AMD_ADVPOWER_EDX_PA RT_BIT(12)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR0_PE RT_BIT(0)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_PROTECTION_ENABLE RT_BIT(0)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_MP RT_BIT(1)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_MONITOR_COPROCESSOR RT_BIT(1)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_EM RT_BIT(2)
3598f07e0e71a448a04d478320a9ca6314160ff6vboxsync%define X86_CR0_EMULATE_FPU RT_BIT(2)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_TS RT_BIT(3)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_TASK_SWITCH RT_BIT(3)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_ET RT_BIT(4)
3598f07e0e71a448a04d478320a9ca6314160ff6vboxsync%define X86_CR0_EXTENSION_TYPE RT_BIT(4)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_NE RT_BIT(5)
eb5d68001efb9346c3341aa46f2871b973b47107vboxsync%define X86_CR0_NUMERIC_ERROR RT_BIT(5)
3598f07e0e71a448a04d478320a9ca6314160ff6vboxsync%define X86_CR0_WP RT_BIT(16)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR0_WRITE_PROTECT RT_BIT(16)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR0_AM RT_BIT(18)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR0_ALIGMENT_MASK RT_BIT(18)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR0_NW RT_BIT(29)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR0_NOT_WRITE_THROUGH RT_BIT(29)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR0_CD RT_BIT(30)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR0_CACHE_DISABLE RT_BIT(30)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR0_PG RT_BIT(31)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR0_PAGING RT_BIT(31)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR3_PWT RT_BIT(3)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR3_PCD RT_BIT(4)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR3_PAGE_MASK (0xfffff000)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR3_PAE_PAGE_MASK (0xffffffe0)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR3_AMD64_PAGE_MASK 0x000ffffffffff000
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_VME RT_BIT(0)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_PVI RT_BIT(1)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_TSD RT_BIT(2)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_DE RT_BIT(3)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_PSE RT_BIT(4)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_PAE RT_BIT(5)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_MCE RT_BIT(6)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_PGE RT_BIT(7)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_PCE RT_BIT(8)
584a4e8a4f886566a96ba14cdaab6e94162545a8vboxsync%define X86_CR4_OSFXSR RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR4_OSXMMEEXCPT RT_BIT(10)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_CR4_VMXE RT_BIT(13)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CR4_SMXE RT_BIT(14)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CR4_PCIDE RT_BIT(17)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_CR4_OSXSAVE RT_BIT(18)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CR4_SMEP RT_BIT(20)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_CR4_SMAP RT_BIT(21)
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define X86_DR6_B0 RT_BIT(0)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_B1 RT_BIT(1)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_B2 RT_BIT(2)
fde449f361029c75f9bf28f145bd1ba7b36a9c77vboxsync%define X86_DR6_B3 RT_BIT(3)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_B_MASK 0x0000000f
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_BD RT_BIT(13)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_BS RT_BIT(14)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_BT RT_BIT(15)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_INIT_VAL 0xFFFF0FF0
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_RA1_MASK 0xffff0ff0
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_DR6_RAZ_MASK RT_BIT_64(12)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_MBZ_MASK 0xffffffff00000000
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR6_B(iBp) RT_BIT_64(iBp)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_L0 RT_BIT(0)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_G0 RT_BIT(1)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_L1 RT_BIT(2)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_G1 RT_BIT(3)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_L2 RT_BIT(4)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define X86_DR7_G2 RT_BIT(5)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_L3 RT_BIT(6)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_G3 RT_BIT(7)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LE RT_BIT(8)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_GE RT_BIT(9)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_LE_ALL 0x0000000000000055
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_GE_ALL 0x00000000000000aa
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_ICE_IR RT_BIT(12)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_GD RT_BIT(13)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_ICE_TR1 RT_BIT(14)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_ICE_TR2 RT_BIT(15)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_RW0_MASK (3 << 16)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LEN0_MASK (3 << 18)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_RW1_MASK (3 << 20)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LEN1_MASK (3 << 22)
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_RW2_MASK (3 << 24)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_LEN2_MASK (3 << 26)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW3_MASK (3 << 28)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_LEN3_MASK (3 << 30)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RA1_MASK (RT_BIT(10))
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RAZ_MASK 0x0000d800
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_DR7_MBZ_MASK 0xffffffff00000000
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_L(iBp) ( 1 << (iBp * 2) )
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_G(iBp) ( 1 << (iBp * 2 + 1) )
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_DR7_L_G(iBp) ( 3 << (iBp * 2) )
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW_EO 0
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW_WO 1
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW_IO 2
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_DR7_RW_RW 3
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW(iBp, fRw) ( (fRw) << ((iBp) * 4 + 16) )
e38719852d98638514dba23fbacf53ad11361d6avboxsync%define X86_DR7_GET_RW(uDR7, iBp) ( ( (uDR7) >> ((iBp) * 4 + 16) ) & 3 )
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define X86_DR7_RW_ALL_MASKS 0x33330000
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%ifndef VBOX_FOR_DTRACE_LIB
0c1bdc5adae416967cb64e09f8ec81a5b77fe31dvboxsync %define X86_DR7_ANY_RW_IO(uDR7) \
85c594c1140f082dd862abde9dc7825137a3d51avboxsync ( ( 0x22220000 & (uDR7) )
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LEN_BYTE 0
06bb0fc0d77854631add1701e7ccde0095c73796vboxsync%define X86_DR7_LEN_WORD 1
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LEN_QWORD 2
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define X86_DR7_LEN_DWORD 3
4cf22962b49e1056d0424cbe6736fee615e296efvboxsync%define X86_DR7_LEN(iBp, cb) ( (cb) << ((iBp) * 4 + 18) )
4cf22962b49e1056d0424cbe6736fee615e296efvboxsync%define X86_DR7_GET_LEN(uDR7, iBp) ( ( (uDR7) >> ((iBp) * 4 + 18) ) & 0x3 )
4cf22962b49e1056d0424cbe6736fee615e296efvboxsync%define X86_DR7_ENABLED_MASK 0x000000ff
4cf22962b49e1056d0424cbe6736fee615e296efvboxsync%define X86_DR7_LEN_ALL_MASKS 0xcccc0000
16a9c73495bd644adca2ffe9567c3b2a72d7b94dvboxsync%define X86_DR7_RW_LEN_ALL_MASKS 0xffff0000
16a9c73495bd644adca2ffe9567c3b2a72d7b94dvboxsync%define X86_DR7_INIT_VAL 0x400
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define MSR_P5_MC_ADDR 0x00000000
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define MSR_P5_MC_TYPE 0x00000001
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define MSR_IA32_TSC 0x10
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define MSR_IA32_CESR 0x00000011
f6b7aa2d424718f1bf8ca45a37b219b986f1024bvboxsync%define MSR_IA32_CTR0 0x00000012
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define MSR_IA32_CTR1 0x00000013
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define MSR_IA32_PLATFORM_ID 0x17
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%ifndef MSR_IA32_APICBASE
e38719852d98638514dba23fbacf53ad11361d6avboxsync %define MSR_IA32_APICBASE 0x1b
85c594c1140f082dd862abde9dc7825137a3d51avboxsync %define MSR_IA32_APICBASE_EN RT_BIT_64(11)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync %define MSR_IA32_APICBASE_EXTD RT_BIT_64(10)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync %define MSR_IA32_APICBASE_BSP RT_BIT_64(8)
85c594c1140f082dd862abde9dc7825137a3d51avboxsync %define MSR_IA32_APICBASE_BASE_MIN 0x0000000ffffff000
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define MSR_CORE_THREAD_COUNT 0x35
b29e03c9044019d9c77222336e8f8616052824f5vboxsync%define MSR_IA32_FEATURE_CONTROL 0x3A
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_FEATURE_CONTROL_LOCK RT_BIT(0)
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_FEATURE_CONTROL_SMX_VMXON RT_BIT(1)
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_FEATURE_CONTROL_VMXON RT_BIT(2)
11a862be79fe123488bccca60c06e92cdbfec6e8vboxsync%define MSR_IA32_TSC_ADJUST 0x3B
6e94cf9c6334b6d8e3cd33afe7084e0048fe7c8evboxsync%define MSR_IA32_BIOS_UPDT_TRIG 0x79
6e94cf9c6334b6d8e3cd33afe7084e0048fe7c8evboxsync%define MSR_IA32_BIOS_SIGN_ID 0x8B
6e94cf9c6334b6d8e3cd33afe7084e0048fe7c8evboxsync%define MSR_IA32_PMC0 0xC1
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_PMC1 0xC2
b9b55af9562405a52639a014db7fcc08040066advboxsync%define MSR_IA32_PMC2 0xC3
b9b55af9562405a52639a014db7fcc08040066advboxsync%define MSR_IA32_PMC3 0xC4
b9b55af9562405a52639a014db7fcc08040066advboxsync%define MSR_IA32_PLATFORM_INFO 0xCE
b9b55af9562405a52639a014db7fcc08040066advboxsync%define MSR_IA32_FSB_CLOCK_STS 0xCD
b9b55af9562405a52639a014db7fcc08040066advboxsync%define MSR_PKG_CST_CONFIG_CONTROL 0x000000e2
11a862be79fe123488bccca60c06e92cdbfec6e8vboxsync%define MSR_IA32_MPERF 0xE7
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_APERF 0xE8
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define MSR_IA32_MTRR_CAP 0xFE
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_BBL_CR_CTL3 0x11e
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%ifndef MSR_IA32_SYSENTER_CS
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define MSR_IA32_SYSENTER_CS 0x174
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define MSR_IA32_SYSENTER_ESP 0x175
1c8130d3c423590046a8ed4f3059de38ac5dcc14vboxsync%define MSR_IA32_SYSENTER_EIP 0x176
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MCG_CAP 0x179
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MCG_STATUS 0x17A
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MCG_CTRL 0x17B
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_CR_PAT 0x277
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_PERFEVTSEL0 0x186
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_PERFEVTSEL1 0x187
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_FLEX_RATIO 0x194
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_PERF_STATUS 0x198
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_PERF_CTL 0x199
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_THERM_STATUS 0x19c
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE 0x1A0
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE_FAST_STRINGS RT_BIT_64(0)
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MISC_ENABLE_TCC RT_BIT_64(3)
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MISC_ENABLE_PERF_MON RT_BIT_64(7)
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MISC_ENABLE_BTS_UNAVAIL RT_BIT_64(11)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL RT_BIT_64(12)
80b2a38b5b76ea1ccf85fc51191685fff23ccfebvboxsync%define MSR_IA32_MISC_ENABLE_SST_ENABLE RT_BIT_64(16)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE_MONITOR RT_BIT_64(18)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE_LIMIT_CPUID RT_BIT_64(22)
73814339da1a372e4dce0281cb0cced14d9e5873vboxsync%define MSR_IA32_MISC_ENABLE_XTPR_MSG_DISABLE RT_BIT_64(23)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define MSR_IA32_MISC_ENABLE_XD_DISABLE RT_BIT_64(34)
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define MSR_IA32_DEBUGCTL 0x000001d9
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define MSR_P4_LASTBRANCH_TOS 0x000001da
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define MSR_P4_LASTBRANCH_0 0x000001db
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define MSR_P4_LASTBRANCH_1 0x000001dc
463d00559e51c6e08ccc9f5a77d2ee6d122b6e8cvboxsync%define MSR_P4_LASTBRANCH_2 0x000001dd
34822e8b7d00c04a0bc98c0d1a565a00d9bb1fd9vboxsync%define MSR_P4_LASTBRANCH_3 0x000001de
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define IA32_MTRR_PHYSBASE0 0x200
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define IA32_MTRR_PHYSMASK0 0x201
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define IA32_MTRR_PHYSBASE1 0x202
507ebf9b3b77c84000a55645867db6617b5324bcvboxsync%define IA32_MTRR_PHYSMASK1 0x203
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSBASE2 0x204
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSMASK2 0x205
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSBASE3 0x206
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSMASK3 0x207
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSBASE4 0x208
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSMASK4 0x209
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSBASE5 0x20a
85c594c1140f082dd862abde9dc7825137a3d51avboxsync%define IA32_MTRR_PHYSMASK5 0x20b
%define X86_IS_CANONICAL(a_u64Addr) ((uint64_t)(a_u64Addr) + 0x800000000000 < UINT64_C(0x1000000000000))
%include "iprt/x86extra.mac"