1 --- a/arch/mips/lantiq/prom.c
2 +++ b/arch/mips/lantiq/prom.c
3 @@ -39,20 +39,51 @@ void prom_free_prom_memory(void)
7 +#ifdef CONFIG_IMAGE_CMDLINE_HACK
8 +extern char __image_cmdline[];
11 +prom_init_image_cmdline(void)
13 + char *p = __image_cmdline;
25 + strlcpy(arcs_cmdline, p, sizeof(arcs_cmdline));
27 + strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline));
28 + strlcat(arcs_cmdline, p, sizeof(arcs_cmdline));
32 +static void __init prom_init_image_cmdline(void) { return; }
35 static void __init prom_init_cmdline(void)
38 char **argv = (char **) KSEG1ADDR(fw_arg1);
41 + arcs_cmdline[0] = '\0';
43 for (i = 0; i < argc; i++) {
44 - char *p = (char *) KSEG1ADDR(argv[i]);
45 + char *p = (char *) KSEG1ADDR(argv[i]);
48 + if (CPHYSADDR(p) && *p) {
49 strlcat(arcs_cmdline, p, sizeof(arcs_cmdline));
50 strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline));
53 + prom_init_image_cmdline();
56 void __init prom_init(void)