diff options
author | Vitaly Wool <vitalywool@gmail.com> | 2006-12-08 03:40:35 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-08 20:04:00 -0500 |
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 f8952c1359cd..eb6ec11fef07 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) | |||
35 | return &(arcs_cmdline[0]); | 35 | return &(arcs_cmdline[0]); |
36 | } | 36 | } |
37 | 37 | ||
38 | void prom_init_cmdline(void) | 38 | void __init prom_init_cmdline(void) |
39 | { | 39 | { |
40 | char *cp; | 40 | int i; |
41 | int actr; | ||
42 | |||
43 | actr = 1; /* Always ignore argv[0] */ | ||
44 | 41 | ||
45 | cp = &(arcs_cmdline[0]); | 42 | arcs_cmdline[0] = '\0'; |
46 | while(actr < prom_argc) { | 43 | for (i = 0; i < prom_argc; i++) { |
47 | strcpy(cp, prom_argv[actr]); | 44 | strcat(arcs_cmdline, prom_argv[i]); |
48 | cp += strlen(prom_argv[actr]); | 45 | strcat(arcs_cmdline, " "); |
49 | *cp++ = ' '; | ||
50 | actr++; | ||
51 | } | 46 | } |
52 | if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ | ||
53 | --cp; | ||
54 | *cp = '\0'; | ||
55 | } | 47 | } |
56 | 48 | ||
57 | char *prom_getenv(char *envname) | 49 | char *prom_getenv(char *envname) |