[U-Boot] any value to XTRN_DECLARE_GLOBAL_DATA_PTR these days?

Robert P. J. Day rpjday at crashcourse.ca
Fri Sep 2 11:43:05 CEST 2016


  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

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

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



More information about the U-Boot mailing list