Explorar o código

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 <albert.u.boot@aribaud.net>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Jeroen Hofstee %!s(int64=10) %!d(string=hai) anos
pai
achega
f0c3a6c4ad
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      arch/arm/lib/spl.c

+ 0 - 3
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);
 }