blob: 15ad56a3f9052174a65b60076f408985a0eec0d8 [file] [log] [blame]
Kees Cookdd78b972013-10-10 17:18:13 -07001#ifndef BOOT_CPUFLAGS_H
2#define BOOT_CPUFLAGS_H
3
Borislav Petkovcd4d09e2016-01-26 22:12:04 +01004#include <asm/cpufeatures.h>
Kees Cookdd78b972013-10-10 17:18:13 -07005#include <asm/processor-flags.h>
6
7struct cpu_features {
8 int level; /* Family, or 64 for x86-64 */
Dave Hansene4a84be2016-07-07 17:19:14 -07009 int family; /* Family, always */
Kees Cookdd78b972013-10-10 17:18:13 -070010 int model;
11 u32 flags[NCAPINTS];
12};
13
14extern struct cpu_features cpu;
15extern u32 cpu_vendor[3];
16
17int has_eflag(unsigned long mask);
H. Peter Anvin6e6a4932013-10-13 04:08:56 -070018void get_cpuflags(void);
Kees Cookdd78b972013-10-10 17:18:13 -070019
20#endif