u-boot-brain/arch/arm/include
Heinrich Schuchardt 4f7dc5f608 efi_loader: allow compiling with clang
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>
2020-06-03 17:19:17 +02:00
..
asm efi_loader: allow compiling with clang 2020-06-03 17:19:17 +02:00
debug SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00