[U-Boot] Why no cache flushing in do_go_exec()

Charles Manning cdhmanning at gmail.com
Fri Aug 10 04:38:09 CEST 2012


Hi All

I'm helping to work through an issue where some code is loaded into RAM 
and "go xxx" is issued to then launch the code.

Sometimes this works and sometimes it does not, which makes me suspect that 
there might be a cache flushing issue.

I looked at do_exec_go() and it does not flush caches before jumping to the 
entry point.

Is there a good reason for this or is it an oversight?

Would it help to add a call to cleanup_before_linux() to do_go_exec() to make 
sure the right thing is happening?

Thanks

Charles



More information about the U-Boot mailing list