Commit ba36197c authored by Paul Mundt's avatar Paul Mundt Committed by Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent f3d22298
...@@ -194,10 +194,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -194,10 +194,6 @@ void __init setup_arch(char **cmdline_p)
{ {
enable_mmu(); enable_mmu();
#ifdef CONFIG_CMDLINE_BOOL
strcpy(COMMAND_LINE, CONFIG_CMDLINE);
#endif
ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV);
#ifdef CONFIG_BLK_DEV_RAM #ifdef CONFIG_BLK_DEV_RAM
...@@ -221,9 +217,14 @@ void __init setup_arch(char **cmdline_p) ...@@ -221,9 +217,14 @@ void __init setup_arch(char **cmdline_p)
memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START; memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START;
memory_end = memory_start + __MEMORY_SIZE; memory_end = memory_start + __MEMORY_SIZE;
/* Save unparsed command line copy for /proc/cmdline */ #ifdef CONFIG_CMDLINE_BOOL
strlcpy(boot_command_line, COMMAND_LINE, COMMAND_LINE_SIZE); strlcpy(command_line, CONFIG_CMDLINE, sizeof(command_line));
#else
strlcpy(command_line, COMMAND_LINE, sizeof(command_line));
#endif
/* Save unparsed command line copy for /proc/cmdline */
memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
*cmdline_p = command_line; *cmdline_p = command_line;
parse_early_param(); parse_early_param();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment