aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/m68k/Kconfig.debug16
-rw-r--r--arch/m68k/kernel/setup_mm.c4
2 files changed, 12 insertions, 8 deletions
diff --git a/arch/m68k/Kconfig.debug b/arch/m68k/Kconfig.debug
index 2bdb1b01115c..af4fd5f8f8d5 100644
--- a/arch/m68k/Kconfig.debug
+++ b/arch/m68k/Kconfig.debug
@@ -2,6 +2,14 @@ menu "Kernel hacking"
2 2
3source "lib/Kconfig.debug" 3source "lib/Kconfig.debug"
4 4
5config BOOTPARAM
6 bool 'Compiled-in Kernel Boot Parameter'
7
8config BOOTPARAM_STRING
9 string 'Kernel Boot Parameter'
10 default 'console=ttyS0,19200'
11 depends on BOOTPARAM
12
5if !MMU 13if !MMU
6 14
7config FULLDEBUG 15config FULLDEBUG
@@ -15,14 +23,6 @@ config HIGHPROFILE
15 help 23 help
16 Use a fast secondary clock to produce profiling information. 24 Use a fast secondary clock to produce profiling information.
17 25
18config BOOTPARAM
19 bool 'Compiled-in Kernel Boot Parameter'
20
21config BOOTPARAM_STRING
22 string 'Kernel Boot Parameter'
23 default 'console=ttyS0,19200'
24 depends on BOOTPARAM
25
26config NO_KERNEL_MSG 26config NO_KERNEL_MSG
27 bool "Suppress Kernel BUG Messages" 27 bool "Suppress Kernel BUG Messages"
28 help 28 help
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index c3b45061dd08..55f8f5049f68 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -258,6 +258,10 @@ void __init setup_arch(char **cmdline_p)
258 init_mm.end_data = (unsigned long)_edata; 258 init_mm.end_data = (unsigned long)_edata;
259 init_mm.brk = (unsigned long)_end; 259 init_mm.brk = (unsigned long)_end;
260 260
261#if defined(CONFIG_BOOTPARAM)
262 strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
263 m68k_command_line[CL_SIZE - 1] = 0;
264#endif /* CONFIG_BOOTPARAM */
261 *cmdline_p = m68k_command_line; 265 *cmdline_p = m68k_command_line;
262 memcpy(boot_command_line, *cmdline_p, CL_SIZE); 266 memcpy(boot_command_line, *cmdline_p, CL_SIZE);
263 267