From: Jeroen Hofstee Date: Wed, 30 Jul 2014 19:54:50 +0000 (+0200) Subject: ARM: SPL: do not set gd again X-Git-Tag: v2014.10-rc3~66^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0c3a6c;p=oweals%2Fu-boot.git ARM: SPL: do not set gd again Just before calling board_init_f, crt0.S has already reserved space for the initial gd on the stack. There should be no need to allocate it again. cc: Albert ARIBAUD Signed-off-by: Jeroen Hofstee --- diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index dfcc596815..75ab546923 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -28,9 +28,6 @@ void __weak board_init_f(ulong dummy) /* Clear the BSS. */ memset(__bss_start, 0, __bss_end - __bss_start); - /* Set global data pointer. */ - gd = &gdata; - board_init_r(NULL, 0); }