[U-Boot] [PATCH] ARM v7: Flush icache when executing a program with go
Henrik Nordström
henrik at henriknordstrom.net
Mon Nov 26 00:14:50 CET 2012
sön 2012-11-25 klockan 18:41 +0100 skrev Wolfgang Denk:
> Dear Henrik Nordström,
>
> In message <1353842010.17518.3.camel at home.hno.se> you wrote:
> > ARM v7 runs with icache enabled. For reliable results the go command
> > needs to flush the icache before jumping or it may risk running
> > cached instructions that differ from what currently is in memory.
>
> This should never be an architecutre specific thing. Whether we flush
> caches or not should be the same on all architectures.
Agreed.
But this needs some "flush icache if supported & enabled for current
arch" function that do not yell loudly if icache not supported/enabled.
invalidate_icache_all() yells loudly if not implememented by the current
arch.
Regards
Henrik
More information about the U-Boot
mailing list