]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: SPL: do not set gd again
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 30 Jul 2014 19:54:50 +0000 (21:54 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 9 Sep 2014 11:50:57 +0000 (13:50 +0200)
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>
arch/arm/lib/spl.c

index dfcc596815432b4357114f6aef01b11a66596e04..75ab546923f298f4238b784684e120a146002d75 100644 (file)
@@ -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);
 }