[RFC PATCH 04/10] arm: add __aeabi_memclr in eabi_compat

Sam Edwards cfsworks at gmail.com
Sat May 20 22:55:41 CEST 2023


This is sometimes used by LLVM's code generator.

Signed-off-by: Sam Edwards <CFSworks at gmail.com>
---

 arch/arm/lib/eabi_compat.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c
index f7029918d4..059ca07265 100644
--- a/arch/arm/lib/eabi_compat.c
+++ b/arch/arm/lib/eabi_compat.c
@@ -35,3 +35,8 @@ void __aeabi_memset(void *dest, size_t n, int c)
 {
 	(void) memset(dest, c, n);
 }
+
+void __aeabi_memclr(void *dest, size_t n)
+{
+	(void)memset(dest, 0, n);
+}
-- 
2.39.2



More information about the U-Boot mailing list