Skip to contentSkip to conversation

any value to XTRN_DECLARE_GLOBAL_DATA_PTR these days?

U-Boot Robert P. J. Day 1 participant 1 message Sep 2, 2016

lore
Share & tools
lore
#0 lore raw

current usage/references:

$ grep -r XTRN_DECLARE_GLOBAL_DATA_PTR *
arch/powerpc/include/asm/global_data.h:#define XTRN_DECLARE_GLOBAL_DATA_PTR	extern
arch/powerpc/include/asm/global_data.h:#define DECLARE_GLOBAL_DATA_PTR     XTRN_DECLARE_GLOBAL_DATA_PTR \
common/board_f.c:#ifdef XTRN_DECLARE_GLOBAL_DATA_PTR
common/board_f.c:#undef	XTRN_DECLARE_GLOBAL_DATA_PTR
common/board_f.c:#define XTRN_DECLARE_GLOBAL_DATA_PTR	/* empty = allocate here */
$

where the powerpc header file reads simply:

#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

is any other architecture manually defining that macro?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================