summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-07-30 21:54:50 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-09-09 13:50:57 +0200
commitf0c3a6c4ad09210d5d4aeafe87685ee75e5683d6 (patch)
tree718adfe43a26aec122b13a5557588c523daa6791 /arch/arm
parent47a602eab43fc2a3ce402efd5e7baee3a8a3fffb (diff)
downloadu-boot-imx-f0c3a6c4ad09210d5d4aeafe87685ee75e5683d6.zip
u-boot-imx-f0c3a6c4ad09210d5d4aeafe87685ee75e5683d6.tar.gz
u-boot-imx-f0c3a6c4ad09210d5d4aeafe87685ee75e5683d6.tar.bz2
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib/spl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index dfcc596..75ab546 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);
}