[U-Boot-Users] [Patch] Disable icache before call the first line of kernel in do_bootelf().

Wolfgang Denk wd at denx.de
Wed Aug 8 08:50:01 CEST 2007


In message <1186552257.15798.6.camel at sevens.analog.com> you wrote:
> 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 at gmail.com>

Did you test the impact of this change on all other architectures but
the one you are talking about (without ever mentioning it)?

I don't think we want to do this in general. Please make  this code
conditional.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Though a program be but three lines long,
someday it will have to be maintained."
- The Tao of Programming




More information about the U-Boot mailing list