File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ enum cpuid_regs_idx {
23
23
24
24
#define CPUID_MWAIT_LEAF 0x5
25
25
#define CPUID_DCA_LEAF 0x9
26
+ #define XSTATE_CPUID 0x0d
26
27
#define CPUID_TSC_LEAF 0x15
27
28
#define CPUID_FREQ_LEAF 0x16
29
+ #define TILE_CPUID 0x1d
28
30
29
31
#ifdef CONFIG_X86_32
30
32
bool have_cpuid_p (void );
Original file line number Diff line number Diff line change 12
12
/* Bit 63 of XCR0 is reserved for future expansion */
13
13
#define XFEATURE_MASK_EXTEND (~(XFEATURE_MASK_FPSSE | (1ULL << 63)))
14
14
15
- #define XSTATE_CPUID 0x0000000d
16
-
17
- #define TILE_CPUID 0x0000001d
18
-
19
15
#define FXSAVE_SIZE 512
20
16
21
17
#define XSAVE_HDR_SIZE 64
Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ static const struct cpuid_dependent_feature
639
639
cpuid_dependent_features [] = {
640
640
{ X86_FEATURE_MWAIT , CPUID_MWAIT_LEAF },
641
641
{ X86_FEATURE_DCA , CPUID_DCA_LEAF },
642
- { X86_FEATURE_XSAVE , 0x0000000d },
642
+ { X86_FEATURE_XSAVE , XSTATE_CPUID },
643
643
{ 0 , 0 }
644
644
};
645
645
Original file line number Diff line number Diff line change 20
20
#include <asm/fpu/signal.h>
21
21
#include <asm/fpu/xcr.h>
22
22
23
+ #include <asm/cpuid.h>
23
24
#include <asm/tlbflush.h>
24
25
#include <asm/prctl.h>
25
26
#include <asm/elf.h>
You can’t perform that action at this time.
0 commit comments