]> git.baikalelectronics.ru Git - uboot.git/commit
common/board_f: remove XTRN_DECLARE_GLOBAL_DATA_PTR dead code
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 13 Sep 2022 18:31:26 +0000 (21:31 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 7 Oct 2022 01:05:17 +0000 (21:05 -0400)
commit17263553be76e8614f82b301b0aa18436e10fef0
tree33a6ca7b87da1f7ac5c39e4166bc1e7d4611445b
parent790a957509db02f919b4b57a0df361c17102f6b6
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>
arch/powerpc/include/asm/global_data.h
common/board_f.c
doc/develop/global_data.rst