mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
MIPS: Sibyte: Honor CONFIG_CMDLINE
Original patch by Imre Kaloz <kaloz@openwrt.org>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e36b80b658
commit
e082f188f7
1 changed files with 1 additions and 7 deletions
|
@ -288,13 +288,7 @@ void __init prom_init(void)
|
|||
*/
|
||||
cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE);
|
||||
if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) {
|
||||
if (argc < 0) {
|
||||
/*
|
||||
* It's OK for direct boot to not provide a
|
||||
* command line
|
||||
*/
|
||||
strcpy(arcs_cmdline, "root=/dev/ram0 ");
|
||||
} else {
|
||||
if (argc >= 0) {
|
||||
/* The loader should have set the command line */
|
||||
/* too early for panic to do any good */
|
||||
printk("LINUX_CMDLINE not defined in cfe.");
|
||||
|
|
Loading…
Reference in a new issue