Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Marek Vasut's avatar
    c5a543ea
    arm: lib: Sync libgcc 32b division/modulo operations · c5a543ea
    Marek Vasut authored
    
    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.
    
    This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED
    which is necessary for correct build of these files both in ARM and
    Thumb mode, just like Linux does.
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Albert Aribaud <albert.u.boot@aribaud.net>
    Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
    Cc: Simon Glass <sjg@chromium.org>
    Cc: Tom Rini <trini@konsulko.com>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>
    c5a543ea
    History
    arm: lib: Sync libgcc 32b division/modulo operations
    Marek Vasut authored
    
    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.
    
    This patch also defines CONFIG_THUMB2_KERNEL and CONFIG_ARM_ASM_UNIFIED
    which is necessary for correct build of these files both in ARM and
    Thumb mode, just like Linux does.
    
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: Albert Aribaud <albert.u.boot@aribaud.net>
    Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
    Cc: Simon Glass <sjg@chromium.org>
    Cc: Tom Rini <trini@konsulko.com>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>