public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] arm: spl: Fix SPL booting for OMAP3
@ 2013-06-14  8:54 Stefan Roese
  2013-06-14  8:55 ` [U-Boot] [PATCH 2/3] arm: omap3: spl: Fix problem with 8bit NAND devices Stefan Roese
                   ` (7 more replies)
  0 siblings, 8 replies; 38+ messages in thread
From: Stefan Roese @ 2013-06-14  8:54 UTC (permalink / raw)
  To: u-boot

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@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@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

^ permalink raw reply related	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2013-12-04 12:38 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14  8:54 [U-Boot] [PATCH 1/3] arm: spl: Fix SPL booting for OMAP3 Stefan Roese
2013-06-14  8:55 ` [U-Boot] [PATCH 2/3] arm: omap3: spl: Fix problem with 8bit NAND devices Stefan Roese
2013-07-30 13:25   ` [U-Boot] [U-Boot, " Tom Rini
2013-06-14  8:55 ` [U-Boot] [PATCH 3/3] arm: omap3: Add SPL support to cm_t35 Stefan Roese
2013-06-17 11:53   ` Igor Grinberg
2013-06-17 12:38     ` Tom Rini
2013-06-17 13:38       ` Igor Grinberg
2013-06-17 13:52         ` Stefan Roese
2013-06-17 14:03   ` [U-Boot] [PATCH v2 " Stefan Roese
2013-06-18  6:14     ` Nikita Kiryanov
2013-07-30 10:52   ` [U-Boot] [PATCH v3 " Stefan Roese
2013-07-30 12:10     ` Albert ARIBAUD
2013-07-30 12:14       ` Stefan Roese
2013-11-15  7:51   ` [U-Boot] [PATCH v4] " Stefan Roese
     [not found]     ` <5288BBAC.2020307@compulab.co.il>
     [not found]       ` <5295BF6C.20902@compulab.co.il>
     [not found]         ` <5295C3F8.50101@denx.de>
     [not found]           ` <529E01B7.4070402@compulab.co.il>
2013-12-04 11:38             ` [U-Boot] Fwd: " Stefan Roese
2013-12-04 11:57               ` Tom Rini
2013-12-04 12:02                 ` Stefan Roese
2013-12-04 12:15               ` Gupta, Pekon
2013-12-04 12:38                 ` Stefan Roese
2013-06-20 16:42 ` [U-Boot] [PATCH 1/3] arm: spl: Fix SPL booting for OMAP3 Albert ARIBAUD
2013-06-20 17:01   ` Stefan Roese
2013-06-20 17:51     ` Albert ARIBAUD
2013-06-20 18:28       ` Stefan Roese
2013-06-20 19:18         ` Albert ARIBAUD
2013-06-21  2:13 ` [U-Boot] [PATCH v2 " Stefan Roese
2013-06-21  8:57   ` Albert ARIBAUD
2013-06-21  9:10 ` [U-Boot] [PATCH v3 " Stefan Roese
2013-06-21 10:30   ` Albert ARIBAUD
2013-06-21 10:39     ` Stefan Roese
2013-06-21 10:42 ` [U-Boot] [PATCH v4 " Stefan Roese
2013-06-21 11:02   ` Albert ARIBAUD
2013-06-25  7:14 ` [U-Boot] [PATCH v5 " Stefan Roese
2013-06-27  8:27   ` Albert ARIBAUD
2013-07-03 19:47     ` Tom Rini
2013-07-04 11:58       ` Albert ARIBAUD
2013-07-15 14:33 ` [U-Boot] [PATCH " Tom Rini
2013-07-16  6:24   ` Stefan Roese
2013-07-16 14:36     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox