From: Robert P. J. Day Date: Fri, 2 Sep 2016 05:43:05 -0400 (EDT) Subject: [U-Boot] any value to XTRN_DECLARE_GLOBAL_DATA_PTR these days? Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 ========================================================================