Allow the redboot supplied command line to be append (#2089)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 19 Jul 2007 10:24:16 +0000 (10:24 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 19 Jul 2007 10:24:16 +0000 (10:24 +0000)
SVN-Revision: 8049

target/linux/atheros-2.6/files/arch/mips/atheros/prom.c

index 489f3092793ce12b9c677a294d1d0f85b96bb3e2..36d78b81099e75d64c3f4531ff9bd9f6348e74ca 100644 (file)
@@ -27,6 +27,7 @@
 
 void __init prom_init(void)
 {
+       char **argv;
 
        mips_machgroup = MACH_GROUP_ATHEROS;
        mips_machtype = -1;
@@ -34,6 +35,9 @@ void __init prom_init(void)
        DO_AR5312(ar5312_prom_init();)
        DO_AR5315(ar5315_prom_init();)
 
+       argv = (char **)fw_arg1;
+       /* RedBoot desired command line is argv[1] */ 
+       strcat(arcs_cmdline, argv[1]);
 }
 
 void __init prom_free_prom_memory(void)