[PATCH 2/4] trace: clang compatible handling of gd register
Simon Glass
sjg at chromium.org
Sun May 31 16:08:21 CEST 2020
On Wed, 27 May 2020 at 12:04, Heinrich Schuchardt <xypron.glpk at gmx.de> 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 <xypron.glpk at gmx.de>
> ---
> lib/trace.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list