• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _ASM_X86_DISABLED_FEATURES_H
2 #define _ASM_X86_DISABLED_FEATURES_H
3 
4 /* These features, although they might be available in a CPU
5  * will not be used because the compile options to support
6  * them are not present.
7  *
8  * This code allows them to be checked and disabled at
9  * compile time without an explicit #ifdef.  Use
10  * cpu_feature_enabled().
11  */
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 
25 /*
26  * Make sure to add features to the correct mask
27  */
28 #define DISABLED_MASK0	(DISABLE_VME)
29 #define DISABLED_MASK1	0
30 #define DISABLED_MASK2	0
31 #define DISABLED_MASK3	(DISABLE_CYRIX_ARR|DISABLE_CENTAUR_MCR|DISABLE_K6_MTRR)
32 #define DISABLED_MASK4	0
33 #define DISABLED_MASK5	0
34 #define DISABLED_MASK6	0
35 #define DISABLED_MASK7	0
36 #define DISABLED_MASK8	0
37 #define DISABLED_MASK9	0
38 
39 #endif /* _ASM_X86_DISABLED_FEATURES_H */
40