summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-05-26 16:05:09 +1000
committerChris Johns <chrisj@rtems.org>2022-06-16 10:21:46 +1000
commitbfc99a6e70f32dabf6557d5dcbaa3cd7ab93bed0 (patch)
tree035528c01db58808da121f5e6fe9202212d320da /bsps
parentbsps/shared/*: Change license to BSD-2 (diff)
downloadrtems-bfc99a6e70f32dabf6557d5dcbaa3cd7ab93bed0.tar.bz2
bsp/aarch64: Flush the cache before invalidating it
- Any page tables need to be flushed if the cache is enabled. Disabling the cache may only be available in secure mode.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/aarch64/include/bsp/aarch64-mmu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsps/aarch64/include/bsp/aarch64-mmu.h b/bsps/aarch64/include/bsp/aarch64-mmu.h
index b1a471d534..6e589cd6cd 100644
--- a/bsps/aarch64/include/bsp/aarch64-mmu.h
+++ b/bsps/aarch64/include/bsp/aarch64-mmu.h
@@ -362,7 +362,8 @@ aarch64_mmu_enable( void )
/* CPUECTLR_EL1.SMPEN is already set on ZynqMP and is not writable */
- /* Invalidate cache */
+ /* Flush and invalidate cache */
+ rtems_cache_flush_entire_data();
rtems_cache_invalidate_entire_data();
/* Enable MMU and cache */