[PATCH 1/2] ARM: Thumb-2: Make CONFIG_THUMB2_KERNEL depend on !CPU_V6

Santosh Shilimkar santosh.shilimkar at ti.com
Fri Feb 4 05:47:04 EST 2011


> -----Original Message-----
> From: Dave Martin [mailto:dave.martin at linaro.org]
> Sent: Thursday, December 09, 2010 5:30 PM
> To: linux-arm-kernel at lists.infradead.org
> Cc: Dave Martin; Santosh Shilimkar; linux-omap at vger.kernel.org
> Subject: [PATCH 1/2] ARM: Thumb-2: Make CONFIG_THUMB2_KERNEL depend
> on !CPU_V6
>
> This makes sense, because Thumb-2 code can't execute on plain
> ARMv6 processors.
>
> This will avoid accidentally configuring a broken kernel where the
> config otherwise would allow multiple architecture versions to
> coexist in the same kernel.
>
> Not adding !CPU_V5 etc., because the chance of anyone trying to
> put v5 and v7 in the same kernel is low, and I'm not aware of
> any mach which can do this.  These could be added later if it
> matters.
>
> Note that the rules may need to be refined if support for the
> ARM1156J(F)-S processor is later added to the kernel, since this
> processor supports the rare ARMv6T2 extensions, which add support
> for Thumb-2 and a few other ARMv7 features.
>
> Signed-off-by: Dave Martin <dave.martin at linaro.org>
> Acked-by: Catalin Marinas <catalin.marinas at arm.com>

Acked-by: Santosh Shilimkar <santosh.shilimkar at ti.com>`

> ---
>  arch/arm/Kconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index db524e7..f9ca7f3 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1311,7 +1311,7 @@ config HZ
>
>  config THUMB2_KERNEL
>  	bool "Compile the kernel in Thumb-2 mode"
> -	depends on CPU_V7 && EXPERIMENTAL
> +	depends on CPU_V7 && !CPU_V6 && EXPERIMENTAL
>  	select AEABI
>  	select ARM_ASM_UNIFIED
>  	help
> --
> 1.7.1



More information about the linux-arm-kernel mailing list