diff options
Diffstat (limited to 'arch/x86/boot/cpu.c')
-rw-r--r-- | arch/x86/boot/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/boot/cpu.c b/arch/x86/boot/cpu.c index 26240dde081e..4224ede43b4e 100644 --- a/arch/x86/boot/cpu.c +++ b/arch/x86/boot/cpu.c | |||
@@ -87,6 +87,12 @@ int validate_cpu(void) | |||
87 | return -1; | 87 | return -1; |
88 | } | 88 | } |
89 | 89 | ||
90 | if (CONFIG_X86_MINIMUM_CPU_FAMILY <= 4 && !IS_ENABLED(CONFIG_M486) && | ||
91 | !has_eflag(X86_EFLAGS_ID)) { | ||
92 | printf("This kernel requires a CPU with the CPUID instruction. Build with CONFIG_M486=y to run on this CPU.\n"); | ||
93 | return -1; | ||
94 | } | ||
95 | |||
90 | if (err_flags) { | 96 | if (err_flags) { |
91 | puts("This kernel requires the following features " | 97 | puts("This kernel requires the following features " |
92 | "not present on the CPU:\n"); | 98 | "not present on the CPU:\n"); |