[U-Boot] [PATCH 1/2] armv8: add hooks for all cache-wide operations

york sun york.sun at nxp.com
Tue Oct 18 17:28:34 CEST 2016


On 10/17/2016 04:35 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> SoC-specific logic may be required for all forms of cache-wide
> operations; invalidate and flush of both dcache and icache (note that
> only 3 of the 4 possible combinations make sense, since the icache never
> contains dirty lines). This patch adds an optional hook for all
> implemented cache-wide operations, and renames the one existing hook to
> better represent exactly which operation it is implementing. A dummy
> no-op implementation of each hook is provided. These dummy
> implementations are moved into C code, since there's no need to
> implement them in assembly.
>
Stephen,

Moving this function to C may pose an issue. I had a debug a couple of 
years ago that calling a C function put the stack into cache after 
flushing L1/L2. That's why I used asm function to flush L3.

York



More information about the U-Boot mailing list