From: Stefan Roese Date: Mon, 27 Aug 2012 12:50:56 +0200 Subject: [U-Boot] [PATCH v2 01/12] SPL: Fix build problems on ARM with new SPL framework In-Reply-To: <1346064667-29692-1-git-send-email-sr@denx.de> References: <1346064667-29692-1-git-send-email-sr@denx.de> Message-ID: <1346064667-29692-2-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de v4 of the SPL rework introduced some small issues. This patch fixes them. Signed-off-by: Stefan Roese --- arch/arm/lib/spl.c | 2 ++ common/spl/spl.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.12