]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: Add __aeabi_memclr in eabi_compat
authorSam Edwards <cfsworks@gmail.com>
Sat, 15 Mar 2025 22:18:01 +0000 (15:18 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 2 Apr 2025 20:33:50 +0000 (14:33 -0600)
LLVM's code generator will sometimes emit calls to __aeabi_memclr. Add an
implementation of this for LLVM compatibility.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/lib/eabi_compat.c

index 602efe04c04ffe113341e4a1f4f6ec0c504431ae..e4190c049a33c68fa573454f753d23a44ddd2daf 100644 (file)
@@ -37,3 +37,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);
+}