aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/powertv/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/powertv/init.c')
-rw-r--r--arch/mips/powertv/init.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/mips/powertv/init.c b/arch/mips/powertv/init.c
index 5f4e4c304e48..de0e46ab0957 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" 37static int *_prom_envp;
38
39int prom_argc;
40int *_prom_argv, *_prom_envp;
41unsigned long _prom_memsize; 38unsigned long _prom_memsize;
42 39
43/* 40/*
@@ -109,8 +106,11 @@ static void __init mips_ejtag_setup(void)
109 106
110void __init prom_init(void) 107void __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
@@ -118,7 +118,10 @@ void __init prom_init(void)
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 pr_info("\nLINUX started...\n");
121 prom_init_cmdline(); 121
122 if (prom_argc == 1)
123 strlcat(arcs_cmdline, prom_argv, COMMAND_LINE_SIZE);
124
122 configure_platform(); 125 configure_platform();
123 prom_meminit(); 126 prom_meminit();
124 127