From: Simon Glass Date: Mon, 26 Jan 2015 09:55:28 -0700 Subject: [U-Boot] [PATCH v2 3/3] arm: spl: Avoid setting up a duplicate global data structure In-Reply-To: <1422291328-23909-1-git-send-email-sjg@chromium.org> References: <1422291328-23909-1-git-send-email-sjg@chromium.org> Message-ID: <1422291328-23909-4-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This is already set up in crt0.S. We don't need a new structure and don't really want one in the 'data' section of the image, since it will be empty and crt0.S's changes will be ignored. Signed-off-by: Simon Glass --- Changes in v2: - Remove gdata definition from ARM spl header file also arch/arm/include/asm/spl.h | 2 -- arch/arm/lib/spl.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h index 8acd7cd..e5dbab0 100644 --- a/arch/arm/include/asm/spl.h +++ b/arch/arm/include/asm/spl.h @@ -33,6 +33,4 @@ enum { /* Linker symbols. */ extern char __bss_start[], __bss_end[]; -extern gd_t gdata; - #endif diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index 7c9afbd..6361a62 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -13,15 +13,6 @@ #include #include -/* Pointer to as well as the global data structure for SPL */ -DECLARE_GLOBAL_DATA_PTR; - -/* - * WARNING: This is going away very soon. Don't use it and don't submit - * pafches that rely on it. The global_data area is set up in crt0.S. - */ -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 -- 2.2.0.rc0.207.ga3a616c