ARM: 7880/1: Clear the IT state independent of the Thumb-2 mode
authorT.J. Purtell <tj@mobisocial.us>
Wed, 6 Nov 2013 17:38:05 +0000 (18:38 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:09 +0000 (03:46 +0100)
commitcf5fdb4aded0e6a29b8e4059cab400306c562a14
tree2d5e71291e3f7d66cf6a554ac79d92030997710a
parent6910b17342022468f9793c70d57a835d44187bd7
ARM: 7880/1: Clear the IT state independent of the Thumb-2 mode

commit 6ecf830e5029598732e04067e325d946097519cb upstream.

The ARM architecture reference specifies that the IT state bits in the
PSR must be all zeros in ARM mode or behavior is unspecified.  On the
Qualcomm Snapdragon S4/Krait architecture CPUs the processor continues
to consider the IT state bits while in ARM mode.  This makes it so
that some instructions are skipped by the CPU.

Signed-off-by: T.J. Purtell <tj@mobisocial.us>
[rmk+kernel@arm.linux.org.uk: fixed whitespace formatting in patch]
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/kernel/signal.c