
27 May
2020
27 May
'20
3:56 a.m.
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@gmx.de
Tested-by: Tom Rini trini@konsulko.com [Raspberry Pi 3, 32bit, Clang 10]
--
Tom