1 /* -*- linux-c -*- ------------------------------------------------------- *
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright 2007 rPath, Inc. - All Rights Reserved
6 * This file is part of the Linux kernel, and is made available under
7 * the terms of the GNU General Public License version 2.
9 * ----------------------------------------------------------------------- */
12 * arch/i386/boot/cpu.c
14 * Check for obligatory CPU features and abort if the features are not
20 #include <asm/cpufeature.h>
22 static char *cpu_name(int level
)
29 sprintf(buf
, "i%d86", level
);
34 int validate_cpu(void)
37 int cpu_level
, req_level
;
39 check_cpu(&cpu_level
, &req_level
, &err_flags
);
41 if (cpu_level
< req_level
) {
42 printf("This kernel requires an %s CPU, ",
44 printf("but only detected an %s CPU.\n",
51 puts("This kernel requires the following features "
52 "not present on the CPU:\n");
54 for (i
= 0; i
< NCAPINTS
; i
++) {
57 for (j
= 0; j
< 32; j
++) {
59 printf("%d:%d ", i
, j
);