
8 Aug
2007
8 Aug
'07
7:50 a.m.
On some architecture, it is not save to call the first line of kernel without disable the instruction cache. For do_bootm() path, architecture specific library code do_bootm_linux() can adress this issue, but do_bootelf() is common code. This patch disables icache before call kernel.
Signed-off-by: Sonic Zhang sonic.zhang@gmail.com
Index: common/cmd_elf.c =================================================================== --- common/cmd_elf.c (revision 871) +++ common/cmd_elf.c (working copy) @@ -65,6 +65,8 @@ */ if (dcache_status ()) dcache_disable (); + if (icache_status ()) + icache_disable ();
/* pass cmdline to the kernel. */ cmdline = make_command_line();