diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2019-02-19 17:18:50 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-20 08:20:13 -0800 |
commit | 153c90a2026f1ae56705e4880e2461354d1ac9af (patch) | |
tree | 9e6c9f177163c48fb1727bf7cf6749b61affcf5e /core/cortex-m/cpu.h | |
parent | 0ab7ffefc75159861c7e35d9e6eb673997358c14 (diff) | |
download | chrome-ec-153c90a2026f1ae56705e4880e2461354d1ac9af.tar.gz |
mt_scp: Add functions to clean/invalidated selected ranges of D-cache
The previous version could only work on single lines, let's add
functions to work on ranges.
BRANCH=none
BUG=b:123676508
TEST=fill; flush; fill to generate incoherent DRAM/cache content
TEST=flush 0x10000000 16 c => clean a single line
flush 0x10000020 32 c => clean a single line
flush 0x10000040 64 c => clean 2 lines
TEST=flush 0x10000080 16 i => invalidate 1 line
flush 0x100000a0 32 i => invalidate 1 line
flush 0x100000c0 64 i => invalidate 2 lines
Change-Id: Ib386eeb4ce5d2f64a23e558c7f562eba234e6b0d
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1475105
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'core/cortex-m/cpu.h')
-rw-r--r-- | core/cortex-m/cpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/cortex-m/cpu.h b/core/cortex-m/cpu.h index 7f91b33179..87e0631787 100644 --- a/core/cortex-m/cpu.h +++ b/core/cortex-m/cpu.h @@ -71,9 +71,9 @@ void cpu_invalidate_dcache(void); /* Clean and Invalidate the D-cache to the Point of Coherency */ void cpu_clean_invalidate_dcache(void); -/* Invalidate a single address of the D-cache */ -void cpu_invalidate_dcache_address(uintptr_t address); -/* Clean and Invalidate a single address of the D-cache */ -void cpu_clean_invalidate_dcache_address(uintptr_t address); +/* Invalidate a single range of the D-cache */ +void cpu_invalidate_dcache_range(uintptr_t base, unsigned int length); +/* Clean and Invalidate a single range of the D-cache */ +void cpu_clean_invalidate_dcache_range(uintptr_t base, unsigned int length); #endif /* __CROS_EC_CPU_H */ |