From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 05 Jan 2010 08:12:02 +0100 Subject: [U-Boot] ARM GLOBAL_DATA_PTR gd issue In-Reply-To: <64a762f51001042304u45dfb668k9d1b3726a19ea261@mail.gmail.com> References: <64a762f51001042304u45dfb668k9d1b3726a19ea261@mail.gmail.com> Message-ID: <4B42E642.80203@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de pawan a ?crit : > Hi, > > I'm trying to compile the u-boot for arm-1026 architecture after adding the > support for a new board. I'm facing the issue in accessing the global data > "gd" (which is declared in "include/asm-arm/global_data.h" as > #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd __asm__ > ("r8") > ). > > As per the declaration "gd" is assigned the register "r8", however in the > generated code this never happens, mostly it is the r6 register that is used > for it. I checked that the -ffixed-r8 is getting used as a compile option. > Can somebody point what might be going wrong? > > Thanks, > Pawan Just to make sure: did you check for -ffixed-r8 in (some of) the makefiles or by looking at the actual compile command lines applied? Amicalement, -- Albert.