[U-Boot] [PATCH] arm: initialize gd for AArch64

Simon Glass sjg at chromium.org
Fri Jan 15 00:11:57 CET 2016


On 14 January 2016 at 14:03, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Commit adc421e4cee8 "arm: move gd handling outside of C code" removed
> the call to arch_setup_gd() on ARM and replaced it with assembly code
> in crt0.S. However, AArch64 uses a different startup file, and the same
> change was not made to it. This leaves gd uninitialized on AArch64, which
> typically leads to hangs or crashes. This change fixes that.
>
> Fixes: adc421e4cee8 ("arm: move gd handling outside of C code")
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/lib/crt0_64.S | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list