On 10/17/2016 04:35 PM, Stephen Warren wrote:
> From: Stephen Warren <swar...@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.

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.


U-Boot mailing list

Reply via email to