required-features.h 847 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _ASM_REQUIRED_FEATURES_H
  2. #define _ASM_REQUIRED_FEATURES_H 1
  3. /* Define minimum CPUID feature set for kernel These bits are checked
  4. really early to actually display a visible error message before the
  5. kernel dies. Only add word 0 bits here
  6. Some requirements that are not in CPUID yet are also in the
  7. CONFIG_X86_MINIMUM_CPU mode which is checked too.
  8. The real information is in arch/i386/Kconfig.cpu, this just converts
  9. the CONFIGs into a bitmask */
  10. #ifdef CONFIG_X86_PAE
  11. #define NEED_PAE (1<<X86_FEATURE_PAE)
  12. #else
  13. #define NEED_PAE 0
  14. #endif
  15. #ifdef CONFIG_X86_CMOV
  16. #define NEED_CMOV (1<<X86_FEATURE_CMOV)
  17. #else
  18. #define NEED_CMOV 0
  19. #endif
  20. #ifdef CONFIG_X86_CMPXCHG64
  21. #define NEED_CMPXCHG64 (1<<X86_FEATURE_CX8)
  22. #else
  23. #define NEED_CMPXCHG64 0
  24. #endif
  25. #define REQUIRED_MASK1 (NEED_PAE|NEED_CMOV|NEED_CMPXCHG64)
  26. #endif