From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 7 Jul 2020 23:03:43 -0400 Subject: [PATCH 2/4] trace: clang compatible handling of gd register In-Reply-To: <20200527180424.39395-3-xypron.glpk@gmx.de> References: <20200527180424.39395-1-xypron.glpk@gmx.de> <20200527180424.39395-3-xypron.glpk@gmx.de> Message-ID: <20200708030343.GV1306@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 08:04:22PM +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. > > Use function set_gd() for setting the register on ARM. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: