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