2013-10-11 04:18:13 +04:00
|
|
|
#ifndef BOOT_CPUFLAGS_H
|
|
|
|
#define BOOT_CPUFLAGS_H
|
|
|
|
|
2016-01-27 00:12:04 +03:00
|
|
|
#include <asm/cpufeatures.h>
|
2013-10-11 04:18:13 +04:00
|
|
|
#include <asm/processor-flags.h>
|
|
|
|
|
|
|
|
struct cpu_features {
|
|
|
|
int level; /* Family, or 64 for x86-64 */
|
|
|
|
int model;
|
|
|
|
u32 flags[NCAPINTS];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct cpu_features cpu;
|
|
|
|
extern u32 cpu_vendor[3];
|
|
|
|
|
|
|
|
int has_eflag(unsigned long mask);
|
2013-10-13 15:08:56 +04:00
|
|
|
void get_cpuflags(void);
|
2013-10-11 04:18:13 +04:00
|
|
|
|
|
|
|
#endif
|