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

2020-05-31 Thread Simon Glass
On Wed, 27 May 2020 at 12:04, Heinrich Schuchardt 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

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

2020-05-27 Thread Heinrich Schuchardt
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