diff options
Diffstat (limited to 'arch/mips/powertv/init.c')
| -rw-r--r-- | arch/mips/powertv/init.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/mips/powertv/init.c b/arch/mips/powertv/init.c index 5f4e4c304e48..0afe227f1d0a 100644 --- a/arch/mips/powertv/init.c +++ b/arch/mips/powertv/init.c | |||
| @@ -34,10 +34,7 @@ | |||
| 34 | #include <asm/mips-boards/generic.h> | 34 | #include <asm/mips-boards/generic.h> |
| 35 | #include <asm/mach-powertv/asic.h> | 35 | #include <asm/mach-powertv/asic.h> |
| 36 | 36 | ||
| 37 | #include "init.h" | 37 | static int *_prom_envp; |
| 38 | |||
| 39 | int prom_argc; | ||
| 40 | int *_prom_argv, *_prom_envp; | ||
| 41 | unsigned long _prom_memsize; | 38 | unsigned long _prom_memsize; |
| 42 | 39 | ||
| 43 | /* | 40 | /* |
| @@ -109,16 +106,20 @@ static void __init mips_ejtag_setup(void) | |||
| 109 | 106 | ||
| 110 | void __init prom_init(void) | 107 | void __init prom_init(void) |
| 111 | { | 108 | { |
| 109 | int prom_argc; | ||
| 110 | char *prom_argv; | ||
| 111 | |||
| 112 | prom_argc = fw_arg0; | 112 | prom_argc = fw_arg0; |
| 113 | _prom_argv = (int *) fw_arg1; | 113 | prom_argv = (char *) fw_arg1; |
| 114 | _prom_envp = (int *) fw_arg2; | 114 | _prom_envp = (int *) fw_arg2; |
| 115 | _prom_memsize = (unsigned long) fw_arg3; | 115 | _prom_memsize = (unsigned long) fw_arg3; |
| 116 | 116 | ||
| 117 | board_nmi_handler_setup = mips_nmi_setup; | 117 | board_nmi_handler_setup = mips_nmi_setup; |
| 118 | board_ejtag_handler_setup = mips_ejtag_setup; | 118 | board_ejtag_handler_setup = mips_ejtag_setup; |
| 119 | 119 | ||
| 120 | pr_info("\nLINUX started...\n"); | 120 | if (prom_argc == 1) |
| 121 | prom_init_cmdline(); | 121 | strlcat(arcs_cmdline, prom_argv, COMMAND_LINE_SIZE); |
| 122 | |||
| 122 | configure_platform(); | 123 | configure_platform(); |
| 123 | prom_meminit(); | 124 | prom_meminit(); |
| 124 | 125 | ||
