summaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorUwe Kleine-König2011-12-09 20:52:10 +0100
committerUwe Kleine-König2013-01-31 21:44:46 +0100
commitbc7dea00a9a0ea385bbc4aed67dfdcf7d8879953 (patch)
tree242257c7c0a016595b672b3151abdf71ec5745a2 /arch/arm/Kconfig
parentARM: make cr_alignment read-only #ifndef CONFIG_CPU_CP15 (diff)
downloadkernel-qcow2-linux-bc7dea00a9a0ea385bbc4aed67dfdcf7d8879953.tar.gz
kernel-qcow2-linux-bc7dea00a9a0ea385bbc4aed67dfdcf7d8879953.tar.xz
kernel-qcow2-linux-bc7dea00a9a0ea385bbc4aed67dfdcf7d8879953.zip
ARM: let CPUs not being able to run in ARM mode enter in THUMB mode
Some ARM cores are not capable to run in ARM mode (e.g. Cortex-M3). So obviously these cannot enter the kernel in ARM mode. Make an exception for them and let them enter in THUMB mode. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Message-Id: 1358162123-30113-1-git-send-email-u.kleine-koenig@pengutronix.de Acked-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 67874b82a4ed..e04c7793f47e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1656,8 +1656,9 @@ config HZ
default 100
config THUMB2_KERNEL
- bool "Compile the kernel in Thumb-2 mode"
+ bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
depends on CPU_V7 && !CPU_V6 && !CPU_V6K
+ default y if CPU_THUMBONLY
select AEABI
select ARM_ASM_UNIFIED
select ARM_UNWIND