[PATCH v1 3/5] arm64: cache_v8: Use memset_simple() in create_table()
Stefan Roese
sr at denx.de
Fri Aug 6 15:38:41 CEST 2021
create_table() is called very early in the boot process, before the
caches are enabled. Because of this, the optimized memset() version
can't be used here. With this patch, the simple memset version
memset_simple() is used here instead.
Signed-off-by: Stefan Roese <sr at denx.de>
---
arch/arm/cpu/armv8/cache_v8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c
index 3de18c7675b9..04c437aebabf 100644
--- a/arch/arm/cpu/armv8/cache_v8.c
+++ b/arch/arm/cpu/armv8/cache_v8.c
@@ -159,7 +159,7 @@ static u64 *create_table(void)
gd->arch.tlb_size);
/* Mark all entries as invalid */
- memset(new_table, 0, pt_len);
+ memset_simple(new_table, 0, pt_len);
return new_table;
}
--
2.32.0
More information about the U-Boot
mailing list