Skip to content
Commit aa62c209 authored by T.J. Purtell's avatar T.J. Purtell Committed by Catalin Marinas
Browse files

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: default avatarT.J. Purtell <tj@mobisocial.us>
[catalin.marinas@arm.com: code comment and commit log updated]
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 847264fb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment