]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: compat: Clear the IT state independent of the 32-bit ARM or Thumb-2 mode
authorT.J. Purtell <tj@mobisocial.us>
Tue, 5 Nov 2013 17:07:18 +0000 (17:07 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 5 Nov 2013 17:47:46 +0000 (17:47 +0000)
commit1d932a3f00c3b756c553b89943734ff52eb62370
treeec9535c5dac3c4a68633247e874dd29b60b5c73e
parent358f49ba6e9d8ebc8d4bbab4ee1e8eed11a8e684
arm64: compat: Clear the IT state independent of the 32-bit ARM or Thumb-2 mode

The ARM architecture reference specifies that the IT state bits in the
PSR must be all zeros in ARM mode or behavior is unspecified. If an ARM
function is registered as a signal handler, and that signal is delivered
inside a block of instructions following an IT instruction, some of the
instructions at the beginning of the signal handler may be skipped if
the IT state bits of the Program Status Register are not cleared by the
kernel.

Signed-off-by: T.J. Purtell <tj@mobisocial.us>
[catalin.marinas@arm.com: code comment and commit log updated]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/signal32.c