[PATCH 1/4] efi_loader: allow compiling with clang

Simon Glass sjg at chromium.org
Sun May 31 16:08:22 CEST 2020


On Wed, 27 May 2020 at 12:04, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> On ARM systems gd is stored in register r9 or x18. When compiling with
> clang gd is defined as a macro calling function gd_ptr(). So we can not
> make assignments to gd.
>
> In the UEFI sub-system we need to save gd when leaving to UEFI binaries and
> have to restore gd when reentering U-Boot.
>
> Define a new function set_gd() for setting gd and use it in the UEFI
> sub-system.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Tested-by: Tom Rini <trini at konsulko.com>
> ---
> Resent.

Series-prefix: Resend

does that for you

> ---
>  arch/arm/include/asm/global_data.h |  9 +++++++++
>  lib/efi_loader/efi_boottime.c      | 10 +++++-----
>  2 files changed, 14 insertions(+), 5 deletions(-)

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


More information about the U-Boot mailing list