]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Oct 2018 03:22:28 +0000 (20:22 -0700)
commit1a38fbada31ddd887cde8541e1f4b5b61ba708ae
treeae685ee0f6253c4193228830230e5a45489a3c64
parent742fa4bc68c6155a21c519756520a8dea84ced0d
sparc64: Set %l4 properly on trap return after handling signals.

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>
arch/sparc/kernel/rtrap_64.S