diff options
| author | Tom Rini <[email protected]> | 2024-06-19 15:27:53 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-07-03 14:42:01 -0600 |
| commit | e32d513304043ddc31bfcf586b799757e47e54ad (patch) | |
| tree | ff84a2645b126a469245c498dc694419d11ba2ee | |
| parent | 19d41f495a24f112ed62c041d18e53334e1b791d (diff) | |
m68k: 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: Angelo Dureghello <[email protected]>
Acked-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
| -rw-r--r-- | arch/m68k/lib/cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c index de04124404c..dab834c1cbd 100644 --- a/arch/m68k/lib/cache.c +++ b/arch/m68k/lib/cache.c @@ -134,6 +134,15 @@ void dcache_invalid(void) #endif } +/* + * Default implementation: + * do a range flush for the entire range + */ +__weak void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +} + __weak void invalidate_dcache_range(unsigned long start, unsigned long stop) { /* An empty stub, real implementation should be in platform code */ |
