
On Wed, 27 May 2020 at 12:04, Heinrich Schuchardt xypron.glpk@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@gmx.de Tested-by: Tom Rini trini@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@chromium.org