[U-Boot] [PATCH 1/3] arm: spl: Fix SPL booting for OMAP3
Stefan Roese
sr at denx.de
Fri Jun 14 10:54:59 CEST 2013
SPL already has GD set to the correct location (in s_init), we mustn't
move it around now since some data (clocks etc) is already present.
This error was detected on the SPL port for the Compulab CM-T35 board
(OMAP3530).
Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Tom Rini <trini at ti.com>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
arch/arm/lib/crt0.S | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S
index a9657d1..b05f66a 100644
--- a/arch/arm/lib/crt0.S
+++ b/arch/arm/lib/crt0.S
@@ -85,7 +85,13 @@ ENTRY(_main)
bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
sub sp, #GD_SIZE /* allocate one GD above SP */
bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
+#if !defined(CONFIG_SPL_BUILD)
+/*
+ * SPL already has GD set to the correct location (in s_init), we mustn't
+ * move it around now since some data (clocks etc) is already present.
+ */
mov r8, sp /* GD is above SP */
+#endif
mov r0, #0
bl board_init_f
--
1.8.2.3
More information about the U-Boot
mailing list