Skip to content
Commit 4f7dc5f6 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: default avatarTom Rini <trini@konsulko.com>
parent 0e69bcfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment