diff options
author | Vitaly Wool <vitalywool@gmail.com> | 2006-12-08 11:40:35 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-09 01:04:00 +0000 |
commit | f0647a52974daccbe20990fb6341f07792445fe0 (patch) | |
tree | 535e0cc2f3dc79136656eee10820fdbcc57bc841 /arch/mips/philips/pnx8550/common | |
parent | c25c79d80e02db1bd993426f979c5f1b42a0f132 (diff) |
[PATCH] add STB810 support (Philips PNX8550-based)
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/philips/pnx8550/common')
-rw-r--r-- | arch/mips/philips/pnx8550/common/prom.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/arch/mips/philips/pnx8550/common/prom.c b/arch/mips/philips/pnx8550/common/prom.c index f8952c1359c..eb6ec11fef0 100644 --- a/arch/mips/philips/pnx8550/common/prom.c +++ b/arch/mips/philips/pnx8550/common/prom.c @@ -35,23 +35,15 @@ char * prom_getcmdline(void) return &(arcs_cmdline[0]); } -void prom_init_cmdline(void) +void __init prom_init_cmdline(void) { - char *cp; - int actr; - - actr = 1; /* Always ignore argv[0] */ + int i; - cp = &(arcs_cmdline[0]); - while(actr < prom_argc) { - strcpy(cp, prom_argv[actr]); - cp += strlen(prom_argv[actr]); - *cp++ = ' '; - actr++; + arcs_cmdline[0] = '\0'; + for (i = 0; i < prom_argc; i++) { + strcat(arcs_cmdline, prom_argv[i]); + strcat(arcs_cmdline, " "); } - if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ - --cp; - *cp = '\0'; } char *prom_getenv(char *envname) |