diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2013-06-21 18:54:47 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-06-24 16:23:36 +0200 |
commit | 3aae7ab0f15d69166789cf84aea39e6b438c4c26 (patch) | |
tree | 79326b144c155370799c3bbffb2f60c9b33f374c /arch/arm/mach-keystone/Makefile | |
parent | 24e860fbfdb1c3f97d17d3578a146f3b42b9ad83 (diff) |
ARM: keystone: Move CPU bringup code to dedicated asm file
Because of inline asm usage in platsmp.c, smc instruction
creates build failure for ARM V6+V7 build where as using instruction
encoding for smc breaks the thumb2 build.
So move the code snippet to separate asm file and mark
it with 'armv7-a$(plus_sec)' to avoid any build issues.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-keystone/Makefile')
-rw-r--r-- | arch/arm/mach-keystone/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-keystone/Makefile b/arch/arm/mach-keystone/Makefile index 3f6b8ab82235..ddc52b05dc84 100644 --- a/arch/arm/mach-keystone/Makefile +++ b/arch/arm/mach-keystone/Makefile @@ -1,2 +1,6 @@ -obj-y := keystone.o +obj-y := keystone.o smc.o + +plus_sec := $(call as-instr,.arch_extension sec,+sec) +AFLAGS_smc.o :=-Wa,-march=armv7-a$(plus_sec) + obj-$(CONFIG_SMP) += platsmp.o |