b2af916442fb6ea75f2f3662e7c9d9156ffc09c3
[openwrt/svn-archive/archive.git] / target / linux / sibyte / patches / 100-honuor_config_cmdline.patch
1 --- a/arch/mips/sibyte/cfe/setup.c
2 +++ b/arch/mips/sibyte/cfe/setup.c
3 @@ -293,7 +293,11 @@ void __init prom_init(void)
4 * It's OK for direct boot to not provide a
5 * command line
6 */
7 +#ifdef CONFIG_CMDLINE
8 + strlcpy(arcs_cmdline, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
9 +#else
10 strcpy(arcs_cmdline, "root=/dev/ram0 ");
11 +#endif
12 } else {
13 /* The loader should have set the command line */
14 /* too early for panic to do any good */