blob: ea97697e51e40fd2ff232caa5e3147ff0f6e725c [file] [log] [blame]
Kees Cookdd78b972013-10-10 17:18:13 -07001#ifndef BOOT_CPUFLAGS_H
2#define BOOT_CPUFLAGS_H
3
4#include <asm/cpufeature.h>
5#include <asm/processor-flags.h>
6
7struct cpu_features {
8 int level; /* Family, or 64 for x86-64 */
9 int model;
10 u32 flags[NCAPINTS];
11};
12
13extern struct cpu_features cpu;
14extern u32 cpu_vendor[3];
15
16int has_eflag(unsigned long mask);
H. Peter Anvin6e6a4932013-10-13 04:08:56 -070017void get_cpuflags(void);
Kees Cookdd78b972013-10-10 17:18:13 -070018
19#endif