original_kernel/arch/mips/txx9/generic
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
..
7segled.c MIPS: TXx9: 7 segment LED support 2008-10-27 16:18:27 +00:00
Makefile MIPS: TXx9: 7 segment LED support 2008-10-27 16:18:27 +00:00
irq_tx3927.c
irq_tx4927.c
irq_tx4938.c
irq_tx4939.c
mem_tx4927.c
pci.c
setup.c MIPS: TXx9: Make firmware parameter passing more robust 2008-10-27 16:18:31 +00:00
setup_tx3927.c
setup_tx4927.c
setup_tx4938.c
setup_tx4939.c
smsc_fdc37m81x.c
spi_eeprom.c