]> 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)
commita87a2f8368f8a50b5492737c1524c2dfd69c7595
treeec9535c5dac3c4a68633247e874dd29b60b5c73e
parent3ea3d42d5b3d7c28faa958dfd8612a33d36d113b
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