From: Dave Martin Date: Fri, 19 Aug 2011 17:00:08 +0000 (+0100) Subject: ARM: 7031/1: entry: Fix Thumb-2 undef handling for multi-CPU kernels X-Git-Tag: v3.2-rc1~189^2^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef4c53687e0adf5409896c4fa688b15f8d4dc0c0;p=pandora-kernel.git 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 Reviewed-by: Jon Medhurst Signed-off-by: Russell King --- Reading git-diff-tree failed