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
========================================================================

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to