Commit e082f188 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Sibyte: Honor CONFIG_CMDLINE

Original patch by Imre Kaloz <kaloz@openwrt.org>.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e36b80b6
...@@ -288,13 +288,7 @@ void __init prom_init(void) ...@@ -288,13 +288,7 @@ void __init prom_init(void)
*/ */
cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE); cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE);
if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) { if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) {
if (argc < 0) { if (argc >= 0) {
/*
* It's OK for direct boot to not provide a
* command line
*/
strcpy(arcs_cmdline, "root=/dev/ram0 ");
} else {
/* The loader should have set the command line */ /* The loader should have set the command line */
/* too early for panic to do any good */ /* too early for panic to do any good */
printk("LINUX_CMDLINE not defined in cfe."); printk("LINUX_CMDLINE not defined in cfe.");
......
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