diff options
author | 2008-10-27 15:25:49 +0100 | |
---|---|---|
committer | 2008-10-27 16:18:31 +0000 | |
commit | 97b0511ce125b0cb95d73b198c1bdbb3cebc4de2 (patch) | |
tree | 0caed72319b7e270b26d82c4a61ae26628b33254 /net/dsa/slave.c | |
parent | MIPS: Markeins: Remove unnecessary define and cleanup comments, etc. (diff) | |
download | wireguard-linux-97b0511ce125b0cb95d73b198c1bdbb3cebc4de2.tar.xz wireguard-linux-97b0511ce125b0cb95d73b198c1bdbb3cebc4de2.zip |
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>
Diffstat (limited to 'net/dsa/slave.c')
0 files changed, 0 insertions, 0 deletions