linux/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 [MIPS] TXx9: Make tx3927-specific code more independent 2008-07-30 21:54:39 +01:00
irq_tx4927.c MIPS: TXx9: Raise priority of interrupts for errors, timers, SIO 2008-10-11 16:18:43 +01:00
irq_tx4938.c MIPS: TXx9: Raise priority of interrupts for errors, timers, SIO 2008-10-11 16:18:43 +01:00
irq_tx4939.c MIPS: TXx9: Add TX4939 SoC support 2008-10-11 16:18:49 +01:00
mem_tx4927.c [MIPS] TXx9: Cleanups for 64-bit support 2008-07-20 14:38:21 +01:00
pci.c [MIPS] TXx9: Add some pci options 2008-07-30 21:54:38 +01:00
setup.c MIPS: TXx9: Make firmware parameter passing more robust 2008-10-27 16:18:31 +00:00
setup_tx3927.c MIPS: TXx9: Add mtd support 2008-10-11 16:18:42 +01:00
setup_tx4927.c MIPS: TXx9: stop_unused_modules 2008-10-11 16:18:47 +01:00
setup_tx4938.c TXx9: Add TX4938 ATA support (v3) 2008-10-23 23:22:08 +02:00
setup_tx4939.c MIPS: TXx9: Add TX4939 ATA support (v2) 2008-10-11 16:18:54 +01:00
smsc_fdc37m81x.c [MIPS] TXx9: Random cleanup 2008-07-30 21:54:40 +01:00
spi_eeprom.c MIPS: TXx9: Make spi_eeprom.c more generic 2008-10-11 16:18:44 +01:00