From: Geert Uytterhoeven Date: Mon, 27 Oct 2008 14:25:49 +0000 (+0100) Subject: MIPS: TXx9: Make firmware parameter passing more robust X-Git-Tag: v2.6.28-rc3~95^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97b0511ce125b0cb95d73b198c1bdbb3cebc4de2;p=pandora-kernel.git 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 Acked-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed