cpuflags.h 343 B

12345678910111213141516171819
  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 model;
  8. u32 flags[NCAPINTS];
  9. };
  10. extern struct cpu_features cpu;
  11. extern u32 cpu_vendor[3];
  12. int has_eflag(unsigned long mask);
  13. void get_cpuflags(void);
  14. #endif