[PATCH 03/17] arm: Add __aeabi_memclr in eabi_compat
Ilias Apalodimas
ilias.apalodimas at linaro.org
Sun Mar 9 09:45:10 CET 2025
On Mon, 24 Feb 2025 at 07:56, Sam Edwards <cfsworks at gmail.com> wrote:
>
> 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 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 602efe04c04..e4190c049a3 100644
> --- a/arch/arm/lib/eabi_compat.c
> +++ b/arch/arm/lib/eabi_compat.c
> @@ -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);
> +}
> --
> 2.45.2
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
More information about the U-Boot
mailing list