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

Wolfgang Denk wd at denx.de
Mon Aug 12 07:53:15 CEST 2013


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 ?

In any case, please also update the README section of register usage
on ARM.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
To be awake is to be alive.        - Henry David Thoreau, in "Walden"


More information about the U-Boot mailing list