| /* -*- linux-c -*- ------------------------------------------------------- * |
| * Copyright (C) 1991, 1992 Linus Torvalds |
| * Copyright 2007 rPath, Inc. - All Rights Reserved |
| * This file is part of the Linux kernel, and is made available under |
| * the terms of the GNU General Public License version 2. |
| * ----------------------------------------------------------------------- */ |
| * Check for obligatory CPU features and abort if the features are not |
| #include <asm/cpufeature.h> |
| static char *cpu_name(int level) |
| sprintf(buf, "i%d86", level); |
| int cpu_level, req_level; |
| check_cpu(&cpu_level, &req_level, &err_flags); |
| if (cpu_level < req_level) { |
| printf("This kernel requires an %s CPU, ", |
| printf("but only detected an %s CPU.\n", |
| puts("This kernel requires the following features " |
| "not present on the CPU:\n"); |
| for (i = 0; i < NCAPINTS; i++) { |
| for (j = 0; j < 32; j++) { |