]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/tm: Fix writing top half of MSR on 32 bit signals
authorMichael Neuling <mikey@neuling.org>
Sun, 9 Jun 2013 11:23:15 +0000 (21:23 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 07:05:15 +0000 (17:05 +1000)
commit7ab0b8e3aab5661b105cae8214d0a84ec92270a9
treee5eee3ea3d725ad2ea28014cac7af7dd0377d68e
parent87565c7385b2d12e1a75c84b2d394c12236b7d9d
powerpc/tm: Fix writing top half of MSR on 32 bit signals

The MSR TM controls are in the top 32 bits of the MSR hence on 32 bit signals,
we stick the top half of the MSR in the checkpointed signal context so that the
user can access it.

Unfortunately, we don't currently write anything to the checkpointed signal
context when coming in a from a non transactional process and hence the top MSR
bits can contain junk.

This updates the 32 bit signal handling code to always write something to the
top MSR bits so that users know if the process is transactional or not and the
kernel can use it on signal return.

Signed-off-by: Michael Neuling <mikey@neuling.org>
cc: stable@vger.kernel.org (v3.9+)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/signal_32.c