diff options
Diffstat (limited to 'arch/x86/include/asm/disabled-features.h')
-rw-r--r-- | arch/x86/include/asm/disabled-features.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/x86/include/asm/disabled-features.h b/arch/x86/include/asm/disabled-features.h index 1a9955dbf0a0..97534a7d38e3 100644 --- a/arch/x86/include/asm/disabled-features.h +++ b/arch/x86/include/asm/disabled-features.h | |||
@@ -10,13 +10,25 @@ | |||
10 | * cpu_feature_enabled(). | 10 | * cpu_feature_enabled(). |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifdef CONFIG_X86_64 | ||
14 | # define DISABLE_VME (1<<(X86_FEATURE_VME & 31)) | ||
15 | # define DISABLE_K6_MTRR (1<<(X86_FEATURE_K6_MTRR & 31)) | ||
16 | # define DISABLE_CYRIX_ARR (1<<(X86_FEATURE_CYRIX_ARR & 31)) | ||
17 | # define DISABLE_CENTAUR_MCR (1<<(X86_FEATURE_CENTAUR_MCR & 31)) | ||
18 | #else | ||
19 | # define DISABLE_VME 0 | ||
20 | # define DISABLE_K6_MTRR 0 | ||
21 | # define DISABLE_CYRIX_ARR 0 | ||
22 | # define DISABLE_CENTAUR_MCR 0 | ||
23 | #endif /* CONFIG_X86_64 */ | ||
24 | |||
13 | /* | 25 | /* |
14 | * Make sure to add features to the correct mask | 26 | * Make sure to add features to the correct mask |
15 | */ | 27 | */ |
16 | #define DISABLED_MASK0 0 | 28 | #define DISABLED_MASK0 (DISABLE_VME) |
17 | #define DISABLED_MASK1 0 | 29 | #define DISABLED_MASK1 0 |
18 | #define DISABLED_MASK2 0 | 30 | #define DISABLED_MASK2 0 |
19 | #define DISABLED_MASK3 0 | 31 | #define DISABLED_MASK3 (DISABLE_CYRIX_ARR|DISABLE_CENTAUR_MCR|DISABLE_K6_MTRR) |
20 | #define DISABLED_MASK4 0 | 32 | #define DISABLED_MASK4 0 |
21 | #define DISABLED_MASK5 0 | 33 | #define DISABLED_MASK5 0 |
22 | #define DISABLED_MASK6 0 | 34 | #define DISABLED_MASK6 0 |