From: Tom Rini Date: Tue, 26 May 2020 21:56:48 -0400 Subject: [PATCH 1/1] efi_loader: allow compiling with clang In-Reply-To: <20200527005406.67560-1-xypron.glpk@gmx.de> References: <20200527005406.67560-1-xypron.glpk@gmx.de> Message-ID: <20200527015648.GA23469@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Tested-by: Tom Rini [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: