disabled-features.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ASM_X86_DISABLED_FEATURES_H
  2. #define _ASM_X86_DISABLED_FEATURES_H
  3. /* These features, although they might be available in a CPU
  4. * will not be used because the compile options to support
  5. * them are not present.
  6. *
  7. * This code allows them to be checked and disabled at
  8. * compile time without an explicit #ifdef. Use
  9. * cpu_feature_enabled().
  10. */
  11. #ifdef CONFIG_X86_64
  12. # define DISABLE_VME (1<<(X86_FEATURE_VME & 31))
  13. # define DISABLE_K6_MTRR (1<<(X86_FEATURE_K6_MTRR & 31))
  14. # define DISABLE_CYRIX_ARR (1<<(X86_FEATURE_CYRIX_ARR & 31))
  15. # define DISABLE_CENTAUR_MCR (1<<(X86_FEATURE_CENTAUR_MCR & 31))
  16. #else
  17. # define DISABLE_VME 0
  18. # define DISABLE_K6_MTRR 0
  19. # define DISABLE_CYRIX_ARR 0
  20. # define DISABLE_CENTAUR_MCR 0
  21. #endif /* CONFIG_X86_64 */
  22. /*
  23. * Make sure to add features to the correct mask
  24. */
  25. #define DISABLED_MASK0 (DISABLE_VME)
  26. #define DISABLED_MASK1 0
  27. #define DISABLED_MASK2 0
  28. #define DISABLED_MASK3 (DISABLE_CYRIX_ARR|DISABLE_CENTAUR_MCR|DISABLE_K6_MTRR)
  29. #define DISABLED_MASK4 0
  30. #define DISABLED_MASK5 0
  31. #define DISABLED_MASK6 0
  32. #define DISABLED_MASK7 0
  33. #define DISABLED_MASK8 0
  34. #define DISABLED_MASK9 0
  35. #endif /* _ASM_X86_DISABLED_FEATURES_H */