[U-Boot] [PATCH] x86: lib: Implement standalone __udivdi3 etc instead of libgcc ones
Simon Glass
sjg at chromium.org
Mon Nov 20 15:40:14 UTC 2017
On 16 November 2017 at 03:27, Stefan Roese <sr at denx.de> wrote:
> This patch removes the inclusion of the libgcc math functions and
> replaces them by functions coded in C, taken from the coreboot
> project. This makes U-Boot building more independent from the toolchain
> installed / available on the build system.
>
> The code taken from coreboot is authored from Vadim Bendebury
> <vbendeb at chromium.org> on 2014-11-28 and committed with commit
> ID e63990ef [libpayload: provide basic 64bit division implementation].
>
> I modified the code so that its checkpatch clean without any
> functional changes.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> ---
> arch/x86/config.mk | 3 --
> arch/x86/lib/Makefile | 2 +-
> arch/x86/lib/div64.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++
> arch/x86/lib/gcc.c | 29 -------------
> 4 files changed, 114 insertions(+), 33 deletions(-)
> create mode 100644 arch/x86/lib/div64.c
> delete mode 100644 arch/x86/lib/gcc.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list