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

Sam Edwards
2023-05-21T12:34:25Z

This is sometimes used by LLVM's code generator.

Signed-off-by: Sam Edwards <CFSworks@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