]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc64: Set %l4 properly on trap return after handling signals.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Oct 2018 03:22:28 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:55 +0000 (14:51 +0100)
commita756494fb7bdf4ddcfa73e42dc15431b562cf59c
treebc34bf2e1617ab3d2fbf6be94f689db0b2d58b93
parent1a47e59c44717bd40a068cd9b995bfa7a9b8a857
sparc64: Set %l4 properly on trap return after handling signals.

[ Upstream commit d1f1f98c6d1708a90436e1a3b2aff5e93946731b ]

If we did some signal processing, we have to reload the pt_regs
tstate register because it's value may have changed.

In doing so we also have to extract the %pil value contained in there
anre load that into %l4.

This value is at bit 20 and thus needs to be shifted down before we
later write it into the %pil register.

Most of the time this is harmless as we are returning to userspace
and the %pil is zero for that case.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/rtrap_64.S