linux/arch/x86/include/asm/required-features.h

#ifndef _ASM_X86_REQUIRED_FEATURES_H
#define _ASM_X86_REQUIRED_FEATURES_H

/* Define minimum CPUID feature set for kernel These bits are checked
   really early to actually display a visible error message before the
   kernel dies.  Make sure to assign features to the proper mask!

   Some requirements that are not in CPUID yet are also in the
   CONFIG_X86_MINIMUM_CPU_FAMILY which is checked too.

   The real information is in arch/x86/Kconfig.cpu, this just converts
   the CONFIGs into a bitmask */

#ifndef CONFIG_MATH_EMULATION
#define NEED_FPU
#else
#define NEED_FPU
#endif

#if defined(CONFIG_X86_PAE) || defined(CONFIG_X86_64)
#define NEED_PAE
#else
#define NEED_PAE
#endif

#ifdef CONFIG_X86_CMPXCHG64
#define NEED_CX8
#else
#define NEED_CX8
#endif

#if defined(CONFIG_X86_CMOV) || defined(CONFIG_X86_64)
#define NEED_CMOV
#else
#define NEED_CMOV
#endif

#define NEED_3DNOW

#if defined(CONFIG_X86_P6_NOP) || defined(CONFIG_X86_64)
#define NEED_NOPL
#else
#define NEED_NOPL
#endif

#ifdef CONFIG_MATOM
#define NEED_MOVBE
#else
#define NEED_MOVBE
#endif

#ifdef CONFIG_X86_64
#ifdef CONFIG_PARAVIRT_XXL
/* Paravirtualized systems may not have PSE or PGE available */
#define NEED_PSE
#define NEED_PGE
#else
#define NEED_PSE
#define NEED_PGE
#endif
#define NEED_MSR
#define NEED_FXSR
#define NEED_XMM
#define NEED_XMM2
#define NEED_LM
#else
#define NEED_PSE
#define NEED_MSR
#define NEED_PGE
#define NEED_FXSR
#define NEED_XMM
#define NEED_XMM2
#define NEED_LM
#endif

#define REQUIRED_MASK0
#define SSE_MASK

#define REQUIRED_MASK1

#define REQUIRED_MASK2
#define REQUIRED_MASK3
#define REQUIRED_MASK4
#define REQUIRED_MASK5
#define REQUIRED_MASK6
#define REQUIRED_MASK7
#define REQUIRED_MASK8
#define REQUIRED_MASK9
#define REQUIRED_MASK10
#define REQUIRED_MASK11
#define REQUIRED_MASK12
#define REQUIRED_MASK13
#define REQUIRED_MASK14
#define REQUIRED_MASK15
#define REQUIRED_MASK16
#define REQUIRED_MASK17
#define REQUIRED_MASK18
#define REQUIRED_MASK19
#define REQUIRED_MASK20
#define REQUIRED_MASK21
#define REQUIRED_MASK_CHECK

#endif /* _ASM_X86_REQUIRED_FEATURES_H */