diff options
| author | Tom Rini <[email protected]> | 2024-06-19 15:27:55 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-07-03 14:42:01 -0600 |
| commit | be9f4ff58567420e470f2f0eccda41347747c8f5 (patch) | |
| tree | 63416945802a6b97795a719bb3210b8461b0fff1 /arch/sh | |
| parent | 8f25b150651d45f3fe75ea19195fc6cc8169d0d2 (diff) | |
sh: 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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'arch/sh')
| -rw-r--r-- | arch/sh/cpu/sh4/cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/cpu/sh4/cache.c b/arch/sh/cpu/sh4/cache.c index 8c1839935ca..f0cb39d6a92 100644 --- a/arch/sh/cpu/sh4/cache.c +++ b/arch/sh/cpu/sh4/cache.c @@ -65,6 +65,15 @@ void flush_dcache_range(unsigned long start, unsigned long end) } } +/* + * Default implementation: + * do a range flush for the entire range + */ +void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +} + void invalidate_dcache_range(unsigned long start, unsigned long end) { u32 v; |
