aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-05-14 04:48:00 -0400
committerPaul Mundt <lethal@hera.kernel.org>2007-06-07 22:43:38 -0400
commitba36197cf4ff68f631bb1b3d4cc442d567279fe3 (patch)
treeae62403970ce955d52603b5c0425825fe094323b
parentf3d2229852697062d530f19742f0ab792b92873d (diff)
sh: Fixup cmdline handling from machvec changes.
The command line wasn't being saved off properly after the machvec changes went in, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/setup.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 0ad715833990..65c093145dac 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -194,10 +194,6 @@ void __init setup_arch(char **cmdline_p)
194{ 194{
195 enable_mmu(); 195 enable_mmu();
196 196
197#ifdef CONFIG_CMDLINE_BOOL
198 strcpy(COMMAND_LINE, CONFIG_CMDLINE);
199#endif
200
201 ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); 197 ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV);
202 198
203#ifdef CONFIG_BLK_DEV_RAM 199#ifdef CONFIG_BLK_DEV_RAM
@@ -221,9 +217,14 @@ void __init setup_arch(char **cmdline_p)
221 memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START; 217 memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START;
222 memory_end = memory_start + __MEMORY_SIZE; 218 memory_end = memory_start + __MEMORY_SIZE;
223 219
224 /* Save unparsed command line copy for /proc/cmdline */ 220#ifdef CONFIG_CMDLINE_BOOL
225 strlcpy(boot_command_line, COMMAND_LINE, COMMAND_LINE_SIZE); 221 strlcpy(command_line, CONFIG_CMDLINE, sizeof(command_line));
222#else
223 strlcpy(command_line, COMMAND_LINE, sizeof(command_line));
224#endif
226 225
226 /* Save unparsed command line copy for /proc/cmdline */
227 memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
227 *cmdline_p = command_line; 228 *cmdline_p = command_line;
228 229
229 parse_early_param(); 230 parse_early_param();