[U-Boot] [PATCH 3/3] ARM: use r9 for gd

Albert ARIBAUD
2013-08-12T14:44:06Z

Hi Wolfgang,

On Mon, 12 Aug 2013 07:53:15 +0200, Wolfgang Denk <wd@denx.de> wrote:

> Dear Jeroen Hofstee,
>
> In message <1376254719-15594-4-git-send-email-jeroen@myspectrum.nl> you wrote:
> > To be more EABI compliant and as a preparation for building
> > with clang, use the platform-specific r9 register for gd
> > instead of r8.
> >
> > note: The FIQ is not updated since it is not used in u-boot,
> > and under discussion for the time being.
> >
> > The following checkpatch warning is ignoredL
> > WARNING: Use of volatile is usually wrong: see
> > Documentation/volatile-considered-harmful.txt
> >
> > Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> > ---
> > arch/arm/config.mk | 2 +-
> > arch/arm/include/asm/global_data.h | 2 +-
> > arch/arm/lib/crt0.S | 16 ++++++++--------
> > 3 files changed, 10 insertions(+), 10 deletions(-)
>
> IIRC, r9 is used as GOT pointer ?

No, it is not, well, not any more since GOT-based relocation was
replaced by ELF relocation, which requires no reserved register.

> In any case, please also update the README section of register usage
> on ARM.
>
> Best regards,
>
> Wolfgang Denk
>

Amicalement,
--
Albert.