remarkable-linux/arch/mips
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
..
alchemy MIPS: Alchemy: Wire up SD controller on DB/PB1200 boards. 2008-10-27 16:18:27 +00:00
basler/excite [MIPS] kgdb: Remove existing implementation 2008-07-30 21:54:42 +01:00
bcm47xx MIPS: WGT634U: Add reset button support 2008-10-15 12:46:51 +01:00
boot
cobalt [MIPS] Cobalt: Fix I/O port resource range 2008-07-20 14:38:20 +01:00
configs MIPS: Add support for NXP PNX833x (STB222/5) into linux kernel 2008-10-27 16:18:29 +00:00
dec mips: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
emma MIPS: Markeins: Remove unnecessary define and cleanup comments, etc. 2008-10-27 16:18:31 +00:00
fw [MIPS] Remove mips_machtype from ARC based machines 2008-07-15 18:44:38 +01:00
gt64120/wrppmc [MIPS] remove wrppmc_machine_power_off() 2008-07-15 18:44:36 +01:00
include/asm MIPS: EMMA2RH: Remove emma2rh_sync on read operation 2008-10-27 16:18:30 +00:00
jazz [MIPS] Jazz: Fix build error by header file inclusion weeding. 2008-08-26 09:10:20 +01:00
kernel MIPS: Add CONFIG_CPU_R5500 for NEC VR5500 series processors 2008-10-27 16:18:29 +00:00
lasat sysctl: simplify ->strategy 2008-10-16 11:21:47 -07:00
lemote/lm2e
lib MIPS: Add CONFIG_CPU_R5500 for NEC VR5500 series processors 2008-10-27 16:18:29 +00:00
math-emu MIPS: Fix debugfs_create_*'s error checking method for arch/mips/math-emu/ 2008-10-27 16:18:25 +00:00
mipssim
mm MIPS: Add CONFIG_CPU_R5500 for NEC VR5500 series processors 2008-10-27 16:18:29 +00:00
mti-malta [MIPS] SMTC: Fix SMTC dyntick support. 2008-10-03 17:58:58 +01:00
nxp MIPS: Add support for NXP PNX833x (STB222/5) into linux kernel 2008-10-27 16:18:29 +00:00
oprofile oprofile: more whitespace fixes 2008-10-15 20:55:51 +02:00
pci MIPS: EMMA: Move <asm/emma2rh> to <asm/emma> dir 2008-10-27 16:18:29 +00:00
pmc-sierra mips: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rb532 MIPS: RB532: Disable the right device 2008-10-27 16:18:29 +00:00
sgi-ip22 MIPS: IP22: ip22-int.c header file weeding. 2008-10-27 16:18:28 +00:00
sgi-ip27 MIPS: IP27: Switch over to RTC class driver 2008-10-15 12:46:51 +01:00
sgi-ip32 MIPS: IP32: Add platform device for CMOS RTC; remove dead code 2008-10-15 12:46:52 +01:00
sibyte mips: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
sni
txx9 MIPS: TXx9: Make firmware parameter passing more robust 2008-10-27 16:18:31 +00:00
vr41xx [MIPS] VR41xx: unsigned irq cannot be negative 2008-09-16 11:04:30 +02:00
Kconfig MIPS: EMMA: Kconfig reorganization 2008-10-27 16:18:29 +00:00
Kconfig.debug [MIPS] kgdb: Remove existing implementation 2008-07-30 21:54:42 +01:00
Makefile MIPS: EMMA: Move arch/mips/emma2rh/ into arch/mips/emma/ 2008-10-27 16:18:29 +00:00