[U-Boot] [PATCH 4/5] arm: lib: Sync libgcc 32b division/modulo operations

Simon Glass sjg at chromium.org
Sat Apr 9 20:34:56 CEST 2016


On 20 March 2016 at 10:15, Marek Vasut <marex at denx.de> wrote:
> Sync the libgcc 32bit division and modulo operations with Linux 4.4.6 ,
> commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . The functions in these
> four files are present in lib1funcs.S in Linux, so replace these files
> with lib1funcs.S from Linux.
>
> Since we do not support stack unwinding, instead of importing the whole
> asm/unwind.h and all the baggage, this patch defines empty UNWIND() macro
> in lib1funcs.S . Moreover, to make all of the functions available, define
> CONFIG_AEABI , which is safe, because U-Boot is always compiled with ARM
> EABI.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Albert Aribaud <albert.u.boot at aribaud.net>
> Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> ---
>  arch/arm/lib/Makefile    |   5 +-
>  arch/arm/lib/divsi3.S    | 143 -------------------
>  arch/arm/lib/lib1funcs.S | 351 +++++++++++++++++++++++++++++++++++++++++++++++
>  arch/arm/lib/modsi3.S    |  99 -------------
>  arch/arm/lib/udivsi3.S   |  95 -------------
>  arch/arm/lib/umodsi3.S   |  90 ------------
>  6 files changed, 353 insertions(+), 430 deletions(-)
>  delete mode 100644 arch/arm/lib/divsi3.S
>  create mode 100644 arch/arm/lib/lib1funcs.S
>  delete mode 100644 arch/arm/lib/modsi3.S
>  delete mode 100644 arch/arm/lib/udivsi3.S
>  delete mode 100644 arch/arm/lib/umodsi3.S

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list