X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Farm%2Flib%2Feabi_compat.c;h=a2cb06e49ae0248c2287a4a5538dccfad6e54674;hb=8ea05705a70135a94419b0d243666c1b51fe1f8d;hp=eb3e26d4d20db0ce867355e12ad699a4972c5618;hpb=cd4b02be1bb732f3990801ff81b57bd597b1d5b6;p=oweals%2Fu-boot.git diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c index eb3e26d4d2..a2cb06e49a 100644 --- a/arch/arm/lib/eabi_compat.c +++ b/arch/arm/lib/eabi_compat.c @@ -3,21 +3,36 @@ * * (C) Copyright 2009 Wolfgang Denk * - * This program is Free Software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. + * SPDX-License-Identifier: GPL-2.0+ */ #include int raise (int signum) { + /* Even if printf() is available, it's large. Punt it for SPL builds */ +#if !defined(CONFIG_SPL_BUILD) printf("raise: Signal # %d caught\n", signum); +#endif return 0; } /* Dummy function to avoid linker complaints */ void __aeabi_unwind_cpp_pr0(void) { -}; +} + +void __aeabi_unwind_cpp_pr1(void) +{ +} + +/* Copy memory like memcpy, but no return value required. */ +void __aeabi_memcpy(void *dest, const void *src, size_t n) +{ + (void) memcpy(dest, src, n); +} + +void __aeabi_memset(void *dest, size_t n, int c) +{ + (void) memset(dest, c, n); +}