File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 21
21
# define DISABLE_K6_MTRR (1<<(X86_FEATURE_K6_MTRR & 31))
22
22
# define DISABLE_CYRIX_ARR (1<<(X86_FEATURE_CYRIX_ARR & 31))
23
23
# define DISABLE_CENTAUR_MCR (1<<(X86_FEATURE_CENTAUR_MCR & 31))
24
+ # define DISABLE_PCID 0
24
25
#else
25
26
# define DISABLE_VME 0
26
27
# define DISABLE_K6_MTRR 0
27
28
# define DISABLE_CYRIX_ARR 0
28
29
# define DISABLE_CENTAUR_MCR 0
30
+ # define DISABLE_PCID (1<<(X86_FEATURE_PCID & 31))
29
31
#endif /* CONFIG_X86_64 */
30
32
31
33
#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
49
51
#define DISABLED_MASK1 0
50
52
#define DISABLED_MASK2 0
51
53
#define DISABLED_MASK3 (DISABLE_CYRIX_ARR|DISABLE_CENTAUR_MCR|DISABLE_K6_MTRR)
52
- #define DISABLED_MASK4 0
54
+ #define DISABLED_MASK4 (DISABLE_PCID)
53
55
#define DISABLED_MASK5 0
54
56
#define DISABLED_MASK6 0
55
57
#define DISABLED_MASK7 0
Original file line number Diff line number Diff line change 21
21
22
22
void __init check_bugs (void )
23
23
{
24
+ #ifdef CONFIG_X86_32
25
+ /*
26
+ * Regardless of whether PCID is enumerated, the SDM says
27
+ * that it can't be enabled in 32-bit mode.
28
+ */
29
+ setup_clear_cpu_cap (X86_FEATURE_PCID );
30
+ #endif
31
+
24
32
identify_boot_cpu ();
25
33
26
34
if (!IS_ENABLED (CONFIG_SMP )) {
You can’t perform that action at this time.
0 commit comments