diff options
author | Tom Rini <trini@konsulko.com> | 2024-06-19 15:27:57 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-07-03 14:42:01 -0600 |
commit | 34a0c164a5368099351fe63e86543ed0f6d394b7 (patch) | |
tree | 1b0e30d450a7cff81255acf88cf05ffc4c609fb9 /arch/powerpc/lib/cache.c | |
parent | 6912c9c2f9f1fc4d62ba33c41a07d137ab04d743 (diff) |
powerpc: Implement a default flush_dcache_all
Implement a weak default version of flush_dcache_all which is based on
the ARM default, which is to flush the entire range via
flush_dcache_range(...).
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/powerpc/lib/cache.c')
-rw-r--r-- | arch/powerpc/lib/cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/lib/cache.c b/arch/powerpc/lib/cache.c index e480b269649..130318d745a 100644 --- a/arch/powerpc/lib/cache.c +++ b/arch/powerpc/lib/cache.c @@ -43,3 +43,12 @@ void flush_cache(ulong start_addr, ulong size) /* flush prefetch queue */ asm volatile("isync" : : : "memory"); } + +/* + * Default implementation: + * do a range flush for the entire range + */ +void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +} |