Re: [PATCH 01/10] MIPS: lantiq: add initial support for Lantiq SoCs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 5, 2011 at 20:56, John Crispin <blogic@xxxxxxxxxxx> wrote:
> --- /dev/null
> +++ b/arch/mips/lantiq/prom.c
> @@ -0,0 +1,84 @@

> +static void __init
> +prom_init_cmdline(void)
> +{
> + Â Â Â int argc = fw_arg0;
> + Â Â Â char **argv = (char **) KSEG1ADDR(fw_arg1);
> + Â Â Â int i;
> + Â Â Â arcs_cmdline[0] = '\0';
> + Â Â Â if (argc)
> + Â Â Â Â Â Â Â for (i = 1; i < argc; i++) {
> + Â Â Â Â Â Â Â Â Â Â Â strlcat(arcs_cmdline, (char *)KSEG1ADDR(argv[i]),
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â COMMAND_LINE_SIZE);
> + Â Â Â Â Â Â Â Â Â Â Â if (i + 1 != argc)
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
> + Â Â Â Â Â Â Â }
> + Â Â Â if (!*arcs_cmdline)
> + Â Â Â Â Â Â Â strcpy(&(arcs_cmdline[0]),
> + Â Â Â Â Â Â Â Â Â Â Â "console=ttyS1,115200 rootfstype=squashfs,jffs2");
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        CONFIG_CMDLINE???

> +}

Gr{oetje,eeting}s,

            Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux