public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM GLOBAL_DATA_PTR gd issue
Date: Tue, 05 Jan 2010 08:12:02 +0100	[thread overview]
Message-ID: <4B42E642.80203@free.fr> (raw)
In-Reply-To: <64a762f51001042304u45dfb668k9d1b3726a19ea261@mail.gmail.com>

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.

      reply	other threads:[~2010-01-05  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05  7:04 [U-Boot] ARM GLOBAL_DATA_PTR gd issue pawan
2010-01-05  7:12 ` Albert ARIBAUD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B42E642.80203@free.fr \
    --to=albert.aribaud@free.fr \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox