|
@@ -25,6 +25,8 @@
|
|
#include <asm/boot.h>
|
|
#include <asm/boot.h>
|
|
#include <asm/setup.h>
|
|
#include <asm/setup.h>
|
|
|
|
|
|
|
|
+#define NCAPINTS 8
|
|
|
|
+
|
|
/* Useful macros */
|
|
/* Useful macros */
|
|
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
|
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
|
|
|
|
|
@@ -242,6 +244,12 @@ int cmdline_find_option(const char *option, char *buffer, int bufsize);
|
|
int cmdline_find_option_bool(const char *option);
|
|
int cmdline_find_option_bool(const char *option);
|
|
|
|
|
|
/* cpu.c, cpucheck.c */
|
|
/* cpu.c, cpucheck.c */
|
|
|
|
+struct cpu_features {
|
|
|
|
+ int level; /* Family, or 64 for x86-64 */
|
|
|
|
+ int model;
|
|
|
|
+ u32 flags[NCAPINTS];
|
|
|
|
+};
|
|
|
|
+extern struct cpu_features cpu;
|
|
int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr);
|
|
int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr);
|
|
int validate_cpu(void);
|
|
int validate_cpu(void);
|
|
|
|
|