]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7031/1: entry: Fix Thumb-2 undef handling for multi-CPU kernels
authorDave Martin <dave.martin@linaro.org>
Fri, 19 Aug 2011 17:00:08 +0000 (18:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Sep 2011 09:12:42 +0000 (10:12 +0100)
commita90ea0b5fd9ad08b235df4f1fafc2ddc9a65c27c
tree1fdb9e2ecc499cd2247b48039c7f693e6f1e2f59
parent6d6e99752fdf09a242dd3cfa8f23c4d57d4b938b
ARM: 7031/1: entry: Fix Thumb-2 undef handling for multi-CPU kernels

When v6 and >=v7 boards are supported in the same kernel, the
__und_usr code currently makes a build-time assumption that Thumb-2
instructions occurring in userspace don't need to be supported.
Strictly speaking this is incorrect.

This patch fixes the above case by doing a run-time check on the
CPU architecture in these cases.  This only affects kernels which
support v6 and >=v7 CPUs together: plain v6 and plain v7 kernels
are unaffected.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Reviewed-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S