diff options
-rw-r--r-- | arch/m68k/Kconfig.debug | 16 | ||||
-rw-r--r-- | arch/m68k/kernel/setup_mm.c | 4 |
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 | ||
3 | source "lib/Kconfig.debug" | 3 | source "lib/Kconfig.debug" |
4 | 4 | ||
5 | config BOOTPARAM | ||
6 | bool 'Compiled-in Kernel Boot Parameter' | ||
7 | |||
8 | config BOOTPARAM_STRING | ||
9 | string 'Kernel Boot Parameter' | ||
10 | default 'console=ttyS0,19200' | ||
11 | depends on BOOTPARAM | ||
12 | |||
5 | if !MMU | 13 | if !MMU |
6 | 14 | ||
7 | config FULLDEBUG | 15 | config 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 | ||
18 | config BOOTPARAM | ||
19 | bool 'Compiled-in Kernel Boot Parameter' | ||
20 | |||
21 | config BOOTPARAM_STRING | ||
22 | string 'Kernel Boot Parameter' | ||
23 | default 'console=ttyS0,19200' | ||
24 | depends on BOOTPARAM | ||
25 | |||
26 | config NO_KERNEL_MSG | 26 | config 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 | ||