Searched hist:"97 b0511ce125b0cb95d73b198c1bdbb3cebc4de2" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/mips/txx9/generic/ |
H A D | setup.c | diff 97b0511ce125b0cb95d73b198c1bdbb3cebc4de2 Mon Oct 27 15:25:49 CET 2008 Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> 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>
|