[PATCH 1/3] bsp/aarch64: Flush the cache before invalidating it
Kinsey Moore
kinsey.moore at oarcorp.com
Wed Jun 15 18:22:41 UTC 2022
Looks good.
On 6/13/2022 20:39, chrisj at rtems.org wrote:
> From: Chris Johns <chrisj at rtems.org>
>
> - Any page tables need to be flushed if the cache is enabled.
> Disabling the cache may only be available in secure mode.
> ---
> bsps/aarch64/include/bsp/aarch64-mmu.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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 */
More information about the devel
mailing list