提交 2a744007 编写于 作者: G Greg Ungerer

m68k: don't panic if no hardware FPU defined

If we boot up and find no hardware FPU we panic and die.

Change this behavior to be that if we boot up and we _expect_ a hardware
FPU to be present then panic. Don't panic if we don't actually expect to
have any hardware FPU.

This lets us compile a kernel without FPU if we really choose too.
Signed-off-by: NGreg Ungerer <gerg@linux-m68k.org>
上级 6d3ec805
......@@ -549,7 +549,7 @@ module_init(proc_hardware_init);
void check_bugs(void)
{
#ifndef CONFIG_M68KFPU_EMU
#if defined(CONFIG_FPU) && !defined(CONFIG_M68KFPU_EMU)
if (m68k_fputype == 0) {
pr_emerg("*** YOU DO NOT HAVE A FLOATING POINT UNIT, "
"WHICH IS REQUIRED BY LINUX/M68K ***\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册