aboutsummaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
authorOvidiu Panait <ovpanait@gmail.com>2022-09-13 21:31:26 +0300
committerTom Rini <trini@konsulko.com>2022-10-06 21:05:17 -0400
commit181cbd4017305142eb26df0aa065b8bb95921f83 (patch)
tree33a6ca7b87da1f7ac5c39e4166bc1e7d4611445b /common/board_f.c
parenta70c75cabae12a81d512b240d60413df294246eb (diff)
downloadu-boot-181cbd4017305142eb26df0aa065b8bb95921f83.zip
u-boot-181cbd4017305142eb26df0aa065b8bb95921f83.tar.gz
u-boot-181cbd4017305142eb26df0aa065b8bb95921f83.tar.bz2
common/board_f: remove XTRN_DECLARE_GLOBAL_DATA_PTR dead code
The XTRN_DECLARE_GLOBAL_DATA_PTR declarations in ppc code are permanently commented out, so there are no users for this macro: #if 1 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r2") #else /* We could use plain global data, but the resulting code is bigger */ #define XTRN_DECLARE_GLOBAL_DATA_PTR extern #define DECLARE_GLOBAL_DATA_PTR XTRN_DECLARE_GLOBAL_DATA_PTR \ gd_t *gd #endif Remove all references to this macro, but add a documentation note regarding the possibility of using plain global data for the GD pointer. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 3df4efe..77b7d9e 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -59,18 +59,7 @@
#include <linux/errno.h>
#include <linux/log2.h>
-/*
- * Pointer to initial global data area
- *
- * Here we initialize it if needed.
- */
-#ifdef XTRN_DECLARE_GLOBAL_DATA_PTR
-#undef XTRN_DECLARE_GLOBAL_DATA_PTR
-#define XTRN_DECLARE_GLOBAL_DATA_PTR /* empty = allocate here */
-DECLARE_GLOBAL_DATA_PTR = (gd_t *)(CONFIG_SYS_INIT_GD_ADDR);
-#else
DECLARE_GLOBAL_DATA_PTR;
-#endif
/*
* TODO(sjg@chromium.org): IMO this code should be