[U-Boot] [PATCH v2 2/3] Revert "Revert "ARM: SPL: do not set gd again""

Simon Glass sjg at chromium.org
Mon Jan 26 17:55:27 CET 2015


This reverts commit 1ee30aeed47724eb7c8f145f064b8d03cd294808.

We should now be able to avoid the global_data fiddling that was previously
required for some boards. So re-apply this patch that was reverted.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 arch/arm/lib/spl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index c41850a..7c9afbd 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -33,9 +33,6 @@ void __weak board_init_f(ulong dummy)
 	/* Clear the BSS. */
 	memset(__bss_start, 0, __bss_end - __bss_start);
 
-	/* TODO: Remove settings of the global data pointer here */
-	gd = &gdata;
-
 	board_init_r(NULL, 0);
 }
 
-- 
2.2.0.rc0.207.ga3a616c



More information about the U-Boot mailing list