diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2013-09-21 14:04:41 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-09-23 18:00:02 +0200 |
commit | fe1378a961e508b31b1f29a2bb08ba1dac063155 (patch) | |
tree | 83fdb3942c96af386587a5fe1d58f734cfe2e670 /arch/arm/include/asm/global_data.h | |
parent | a81872ff27bb66578ae515ec5079cf191656b1c1 (diff) | |
download | u-boot-imx-fe1378a961e508b31b1f29a2bb08ba1dac063155.zip u-boot-imx-fe1378a961e508b31b1f29a2bb08ba1dac063155.tar.gz u-boot-imx-fe1378a961e508b31b1f29a2bb08ba1dac063155.tar.bz2 |
ARM: use r9 for gd
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 ignored:
WARNING: Use of volatile is usually wrong: see
Documentation/volatile-considered-harmful.txt
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'arch/arm/include/asm/global_data.h')
-rw-r--r-- | arch/arm/include/asm/global_data.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index 79a9597..e126436 100644 --- a/arch/arm/include/asm/global_data.h +++ b/arch/arm/include/asm/global_data.h @@ -47,6 +47,6 @@ struct arch_global_data { #include <asm-generic/global_data.h> -#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r8") +#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9") #endif /* __ASM_GBL_DATA_H */ |