linux_dsm_epyc7002/arch/mips/txx9
Geert Uytterhoeven 97b0511ce1 MIPS: TXx9: Make firmware parameter passing more robust
When booting Linux on a txx9 board with VxWorks boot loader, it crashes in
prom_getenv(), as VxWorks doesn't pass firmware parameters in a0-a3 (in my
case, the actual leftover values in these registers were 0x80002000,
0x80001fe0, 0x2000, and 0x20).

Make the parsing of argc, argv, and envp a bit more robust by checking if
argc is a number below CKSEG0, and argv/envp point to CKSEG0.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2008-10-27 16:18:31 +00:00
..
generic MIPS: TXx9: Make firmware parameter passing more robust 2008-10-27 16:18:31 +00:00
jmr3927 MIPS: TXx9: IOC LED support 2008-10-11 16:18:49 +01:00
rbtx4927 MIPS: TXx9: IOC LED support 2008-10-11 16:18:49 +01:00
rbtx4938 TXx9: Add TX4938 ATA support (v3) 2008-10-23 23:22:08 +02:00
rbtx4939 MIPS: RBTX4939: Add smc91x support 2008-10-27 16:18:27 +00:00
Kconfig MIPS: TXx9: CONFIG_TOSHIBA_RBTX4939 spelling 2008-10-27 16:18:28 +00:00