[U-Boot] [PATCH 3/3] ARM: use r9 for gd
Albert ARIBAUD
albert.u.boot at aribaud.net
Mon Aug 12 16:44:06 CEST 2013
Hi Wolfgang,
On Mon, 12 Aug 2013 07:53:15 +0200, Wolfgang Denk <wd at denx.de> wrote:
> Dear Jeroen Hofstee,
>
> In message <1376254719-15594-4-git-send-email-jeroen at 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 at 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.
More information about the U-Boot
mailing list