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

Tom Rini trini at konsulko.com
Wed May 27 03:56:48 CEST 2020


On Wed, May 27, 2020 at 02:54:06AM +0200, 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 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> [Raspberry Pi 3, 32bit, Clang 10]

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200526/98a81fc9/attachment.sig>


More information about the U-Boot mailing list