[U-Boot] [PATCH v2 3/3] arm: spl: Avoid setting up a duplicate global data structure
Simon Glass
sjg at chromium.org
Mon Jan 26 17:55:28 CET 2015
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 <sjg at chromium.org>
---
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 <image.h>
#include <linux/compiler.h>
-/* 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
More information about the U-Boot
mailing list