From 832e4ed520d5ed7e64249fe98c1ffb4550db5eca Mon Sep 17 00:00:00 2001 From: Soby Mathew Date: Fri, 19 Apr 2024 11:04:14 +0100 Subject: [PATCH] fix(gpt): declare gpt_tlbi_by_pa_ll() The patch 8754cc5 accidentally removes the declaration of gpt_tlbi_by_pa_ll() and hence breaks RME builds. This patch fixes the same. signed-off-by: Soby Mathew Change-Id: I2523982fc48bca2a1f1a36fd9bd3803b01c6916a --- include/arch/aarch64/arch_helpers.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/arch/aarch64/arch_helpers.h b/include/arch/aarch64/arch_helpers.h index 9ea8bfd51..ab32b18a8 100644 --- a/include/arch/aarch64/arch_helpers.h +++ b/include/arch/aarch64/arch_helpers.h @@ -793,6 +793,15 @@ static inline void tlbirpalos_512m(uintptr_t addr) TLBIRPALOS(addr, TLBI_SZ_512M); } +/* + * Invalidate TLBs of GPT entries by Physical address, last level. + * + * @pa: the starting address for the range + * of invalidation + * @size: size of the range of invalidation + */ +void gpt_tlbi_by_pa_ll(uint64_t pa, size_t size); + /* Previously defined accessor functions with incomplete register names */ #define read_current_el() read_CurrentEl()