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.
This commit is contained in:
Chris Johns
2022-05-26 16:05:09 +10:00
parent d6ebf4067e
commit bfc99a6e70

View File

@@ -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 */