diff options
author | Simon Glass <sjg@chromium.org> | 2011-09-30 10:40:17 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-10-04 15:12:30 -0700 |
commit | 9ce0de3176125de751d179176947940f0041ae7e (patch) | |
tree | d9ab2a64142abb15159be96051de90e87894f6a9 /arch/arm/cpu | |
parent | bebb0b274bdea91623e33210f8ac9c4ac6864b9d (diff) |
tegra: Build early code for ARMv4T
The Tegra family has an ARMv4T chip which runs board_init_f(). It does not
support the BLX instruction which the init_sequence function table generates.
The easiest fix is to build this file for ARMv4T on Tegra.
The alternative is to move the arch_cpu_init() call out of the init
sequence. But that fix would not make the reason for the change so obvious.
There is no code size impact.
BUG=chromium-os:19353
TEST=build and boot on Seaboard
Change-Id: Idb0ab17bd0839c472cda7bf4940522245792e328
Reviewed-on: http://gerrit.chromium.org/gerrit/8684
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/tegra-common/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/Makefile b/arch/arm/cpu/armv7/tegra-common/Makefile index 8d22a66111..577a342694 100644 --- a/arch/arm/cpu/armv7/tegra-common/Makefile +++ b/arch/arm/cpu/armv7/tegra-common/Makefile @@ -21,6 +21,8 @@ # MA 02111-1307 USA # +# The AVP is ARMv4T architecture so we must use special compiler +# flags for any files it might use. CFLAGS_arch/arm/cpu/armv7/tegra-common/ap20.o += -march=armv4t CFLAGS_arch/arm/cpu/armv7/tegra-common/clock.o += -march=armv4t |