aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/setup_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/kernel/setup_mm.c')
-rw-r--r--arch/m68k/kernel/setup_mm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 50633c38f1e2..7a2c21212820 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -245,7 +245,7 @@ void __init setup_arch(char **cmdline_p)
245 * We should really do our own FPU check at startup. 245 * We should really do our own FPU check at startup.
246 * [what do we do with buggy 68LC040s? if we have problems 246 * [what do we do with buggy 68LC040s? if we have problems
247 * with them, we should add a test to check_bugs() below] */ 247 * with them, we should add a test to check_bugs() below] */
248#ifndef CONFIG_M68KFPU_EMU_ONLY 248#if defined(CONFIG_FPU) && !defined(CONFIG_M68KFPU_EMU_ONLY)
249 /* clear the fpu if we have one */ 249 /* clear the fpu if we have one */
250 if (m68k_fputype & (FPU_68881|FPU_68882|FPU_68040|FPU_68060|FPU_COLDFIRE)) { 250 if (m68k_fputype & (FPU_68881|FPU_68882|FPU_68040|FPU_68060|FPU_COLDFIRE)) {
251 volatile int zero = 0; 251 volatile int zero = 0;
@@ -274,6 +274,7 @@ void __init setup_arch(char **cmdline_p)
274 strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE); 274 strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
275 m68k_command_line[CL_SIZE - 1] = 0; 275 m68k_command_line[CL_SIZE - 1] = 0;
276#endif /* CONFIG_BOOTPARAM */ 276#endif /* CONFIG_BOOTPARAM */
277 process_uboot_commandline(&m68k_command_line[0], CL_SIZE);
277 *cmdline_p = m68k_command_line; 278 *cmdline_p = m68k_command_line;
278 memcpy(boot_command_line, *cmdline_p, CL_SIZE); 279 memcpy(boot_command_line, *cmdline_p, CL_SIZE);
279 280
@@ -341,6 +342,7 @@ void __init setup_arch(char **cmdline_p)
341#endif 342#endif
342#ifdef CONFIG_COLDFIRE 343#ifdef CONFIG_COLDFIRE
343 case MACH_M54XX: 344 case MACH_M54XX:
345 case MACH_M5441X:
344 config_BSP(NULL, 0); 346 config_BSP(NULL, 0);
345 break; 347 break;
346#endif 348#endif
@@ -548,7 +550,7 @@ module_init(proc_hardware_init);
548 550
549void check_bugs(void) 551void check_bugs(void)
550{ 552{
551#ifndef CONFIG_M68KFPU_EMU 553#if defined(CONFIG_FPU) && !defined(CONFIG_M68KFPU_EMU)
552 if (m68k_fputype == 0) { 554 if (m68k_fputype == 0) {
553 pr_emerg("*** YOU DO NOT HAVE A FLOATING POINT UNIT, " 555 pr_emerg("*** YOU DO NOT HAVE A FLOATING POINT UNIT, "
554 "WHICH IS REQUIRED BY LINUX/M68K ***\n"); 556 "WHICH IS REQUIRED BY LINUX/M68K ***\n");