diff mbox

[U-Boot,v2,01/12] SPL: Fix build problems on ARM with new SPL framework

Message ID 1346064667-29692-2-git-send-email-sr@denx.de
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Stefan Roese Aug. 27, 2012, 10:50 a.m. UTC
v4 of the SPL rework introduced some small issues. This patch fixes
them.

Signed-off-by: Stefan Roese <sr@denx.de>
---

 arch/arm/lib/spl.c | 2 ++
 common/spl/spl.c   | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini Aug. 27, 2012, 4:30 p.m. UTC | #1
On Mon, Aug 27, 2012 at 12:50:56PM +0200, Stefan Roese wrote:

> v4 of the SPL rework introduced some small issues. This patch fixes
> them.

OK, I see how you're doing GD on powerpc now, I'll re-work what I had
done in my series for v5.  Thanks!
diff mbox

Patch

diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index 2d1f47a..3a5c593 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -33,6 +33,8 @@  DECLARE_GLOBAL_DATA_PTR;
 
 extern char __bss_start[], __bss_end__[];
 
+gd_t gdata __attribute__ ((section(".data")));
+
 /*
  * In the context of SPL, board_init_f must ensure that any clocks/etc for
  * DDR are enabled, ensure that the stack pointer is valid, clear the BSS
diff --git a/common/spl/spl.c b/common/spl/spl.c
index eaea1c8..d36416c 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -43,8 +43,6 @@  DECLARE_GLOBAL_DATA_PTR;
 u32 *boot_params_ptr = NULL;
 struct spl_image_info spl_image;
 
-/* Define global data structure pointer to it*/
-gd_t gdata __attribute__ ((section(".data")));
 static bd_t bdata __attribute__ ((section(".data")));
 
 inline void hang(void)