MOS Source Code
|
Go to the source code of this file.
Macros | |
#define | CPU_FEATURE_FPU 1, 0, d, 0 |
! this feature list must start at line 9 for correct counting (see below...) | |
#define | CPU_FEATURE_VME 1, 0, d, 1 |
#define | CPU_FEATURE_DE 1, 0, d, 2 |
#define | CPU_FEATURE_PSE 1, 0, d, 3 |
#define | CPU_FEATURE_TSC 1, 0, d, 4 |
#define | CPU_FEATURE_MSR 1, 0, d, 5 |
#define | CPU_FEATURE_PAE 1, 0, d, 6 |
#define | CPU_FEATURE_MCE 1, 0, d, 7 |
#define | CPU_FEATURE_CX8 1, 0, d, 8 |
#define | CPU_FEATURE_APIC 1, 0, d, 9 |
#define | CPU_FEATURE_SEP 1, 0, d, 11 |
#define | CPU_FEATURE_MTRR 1, 0, d, 12 |
#define | CPU_FEATURE_PGE 1, 0, d, 13 |
#define | CPU_FEATURE_MCA 1, 0, d, 14 |
#define | CPU_FEATURE_CMOV 1, 0, d, 15 |
#define | CPU_FEATURE_PAT 1, 0, d, 16 |
#define | CPU_FEATURE_PSE36 1, 0, d, 17 |
#define | CPU_FEATURE_PSN 1, 0, d, 18 |
#define | CPU_FEATURE_CLFSH 1, 0, d, 19 |
#define | CPU_FEATURE_DS 1, 0, d, 21 |
#define | CPU_FEATURE_ACPI 1, 0, d, 22 |
#define | CPU_FEATURE_MMX 1, 0, d, 23 |
#define | CPU_FEATURE_FXSR 1, 0, d, 24 |
#define | CPU_FEATURE_SSE 1, 0, d, 25 |
#define | CPU_FEATURE_SSE2 1, 0, d, 26 |
#define | CPU_FEATURE_SS 1, 0, d, 27 |
#define | CPU_FEATURE_HTT 1, 0, d, 28 |
#define | CPU_FEATURE_TM1 1, 0, d, 29 |
#define | CPU_FEATURE_IA64 1, 0, d, 30 |
#define | CPU_FEATURE_PBE 1, 0, d, 31 |
#define | CPU_FEATURE_SSE3 1, 0, c, 0 |
#define | CPU_FEATURE_SSSE3 1, 0, c, 9 |
#define | CPU_FEATURE_PCID 1, 0, c, 17 |
#define | CPU_FEATURE_DCA 1, 0, c, 18 |
#define | CPU_FEATURE_SSE4_1 1, 0, c, 19 |
#define | CPU_FEATURE_SSE4_2 1, 0, c, 20 |
#define | CPU_FEATURE_X2APIC 1, 0, c, 21 |
#define | CPU_FEATURE_MOVBE 1, 0, c, 22 |
#define | CPU_FEATURE_POPCNT 1, 0, c, 23 |
#define | CPU_FEATURE_TSC_DEADLINE 1, 0, c, 24 |
#define | CPU_FEATURE_AES_NI 1, 0, c, 25 |
#define | CPU_FEATURE_XSAVE 1, 0, c, 26 |
#define | CPU_FEATURE_OSXSAVE 1, 0, c, 27 |
#define | CPU_FEATURE_AVX 1, 0, c, 28 |
#define | CPU_FEATURE_F16C 1, 0, c, 29 |
#define | CPU_FEATURE_RDRAND 1, 0, c, 30 |
#define | CPU_FEATURE_HYPERVISOR 1, 0, c, 31 |
#define | CPU_FEATURE_AVX2 7, 0, b, 5 |
#define | CPU_FEATURE_FSGSBASE 7, 0, b, 0 |
#define | CPU_FEATURE_LA57 7, 0, c, 16 |
#define | CPU_FEATURE_XSAVES 0xd, 1, a, 3 |
#define | CPU_FEATURE_NX 0x80000001, 0, d, 20 |
#define | CPU_FEATURE_PDPE1GB 0x80000001, 0, d, 26 |
#define | FOR_ALL_CPU_FEATURES(M) |
#define | _do_count(leaf) |
#define | x86_cpu_get_feature_impl(leaf, subleaf, reg, bit) |
#define | cpu_has_feature(feat) |
#define | FOR_ALL_SUPPORTED_CPUID_LEAF(M) |
#define | X86_CPUID_LEAF_ENUM(leaf, subleaf, reg, ...) |
#define | _do_define_enum(leaf, subleaf, reg) |
#define | XCR0_X87 BIT(0) |
#define | XCR0_SSE BIT(1) |
#define | XCR0_AVX BIT(2) |
#define | XCR0_BNDREGS BIT(3) |
#define | XCR0_BNDCSR BIT(4) |
#define | XCR0_OPMASK BIT(5) |
#define | XCR0_ZMM_Hi256 BIT(6) |
#define | XCR0_Hi16_ZMM BIT(7) |
#define | XCR0_PT BIT(8) |
#define | XCR0_PKRU BIT(9) |
#define | XCR0_PASID BIT(10) |
#define | XCR0_CET_U BIT(11) |
#define | XCR0_CET_S BIT(12) |
#define | XCR0_HDC BIT(13) |
#define | XCR0_UINTR BIT(14) |
#define | XCR0_LBR BIT(15) |
#define | XCR0_HMP BIT(16) |
#define | XCR0_AMX_TILECFG BIT(17) |
#define | XCR0_AMX_TILEDATA BIT(18) |
#define | XCR0_APX_EXGPRS BIT(19) |
Typedefs | |
typedef reg32_t | x86_cpuid_array[_X86_CPUID_COUNT] |
Enumerations | |
enum | { X86_CPUID_1_0_d , X86_CPUID_1_0_c , X86_CPUID_7_0_b , X86_CPUID_7_0_c , X86_CPUID_0xd_1_a , X86_CPUID_0x80000001_0_d , _X86_CPUID_COUNT } |
Functions | |
MOS_STATIC_ASSERT (sizeof((int[]){ __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, })/sizeof(int)==__LINE__ - 21, "FOR_ALL_CPU_FEATURES is incomplete") | |
#define CPU_FEATURE_FPU 1, 0, d, 0 |
#define CPU_FEATURE_MSR 1, 0, d, 5 |
Definition at line 14 of file cpuid.h.
Referenced by lapic_memory_setup().
#define CPU_FEATURE_APIC 1, 0, d, 9 |
Definition at line 18 of file cpuid.h.
Referenced by lapic_memory_setup().
#define CPU_FEATURE_FXSR 1, 0, d, 24 |
Definition at line 31 of file cpuid.h.
Referenced by x86_cpu_initialise_caps().
#define CPU_FEATURE_SSE 1, 0, d, 25 |
Definition at line 32 of file cpuid.h.
Referenced by x86_cpu_initialise_caps().
#define CPU_FEATURE_XSAVE 1, 0, c, 26 |
Definition at line 50 of file cpuid.h.
Referenced by x86_cpu_initialise_caps().
#define CPU_FEATURE_AVX 1, 0, c, 28 |
Definition at line 52 of file cpuid.h.
Referenced by x86_cpu_setup_xsave_area().
#define CPU_FEATURE_FSGSBASE 7, 0, b, 0 |
Definition at line 57 of file cpuid.h.
Referenced by x86_cpu_initialise_caps().
#define CPU_FEATURE_PDPE1GB 0x80000001, 0, d, 26 |
Definition at line 61 of file cpuid.h.
Referenced by x86_setup_direct_map().
#define FOR_ALL_CPU_FEATURES | ( | M | ) |
Definition at line 64 of file cpuid.h.
Referenced by MOS_STATIC_ASSERT(), and platform_startup_early().
#define _do_count | ( | leaf | ) |
#define x86_cpu_get_feature_impl | ( | leaf, | |
subleaf, | |||
reg, | |||
bit ) |
#define cpu_has_feature | ( | feat | ) |
Definition at line 79 of file cpuid.h.
Referenced by lapic_memory_setup(), x86_cpu_initialise_caps(), x86_cpu_setup_xsave_area(), and x86_setup_direct_map().
#define FOR_ALL_SUPPORTED_CPUID_LEAF | ( | M | ) |
Definition at line 81 of file cpuid.h.
Referenced by x86_cpu_initialise_caps().
#define X86_CPUID_LEAF_ENUM | ( | leaf, | |
subleaf, | |||
reg, | |||
... ) |
#define _do_define_enum | ( | leaf, | |
subleaf, | |||
reg ) |
#define XCR0_X87 BIT(0) |
Definition at line 101 of file cpuid.h.
Referenced by x86_cpu_setup_xsave_area().
#define XCR0_SSE BIT(1) |
Definition at line 102 of file cpuid.h.
Referenced by x86_cpu_setup_xsave_area().
#define XCR0_AVX BIT(2) |
Definition at line 103 of file cpuid.h.
Referenced by x86_cpu_setup_xsave_area().
typedef reg32_t x86_cpuid_array[_X86_CPUID_COUNT] |
anonymous enum |
MOS_STATIC_ASSERT | ( | sizeof((int[]){ __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__, })/sizeof(int) | = =__LINE__ - 21, |
"FOR_ALL_CPU_FEATURES is incomplete" | ) |