cpuflags.h 378 B

123456789101112131415161718192021
  1. #ifndef BOOT_CPUFLAGS_H
  2. #define BOOT_CPUFLAGS_H
  3. #include <asm/cpufeatures.h>
  4. #include <asm/processor-flags.h>
  5. struct cpu_features {
  6. int level; /* Family, or 64 for x86-64 */
  7. int family; /* Family, always */
  8. int model;
  9. u32 flags[NCAPINTS];
  10. };
  11. extern struct cpu_features cpu;
  12. extern u32 cpu_vendor[3];
  13. int has_eflag(unsigned long mask);
  14. void get_cpuflags(void);
  15. #endif