summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/entry_64.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-04 23:55:04 (GMT)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-08 23:55:18 (GMT)
commit9424fabf8617c15e18a5ffd29bc3bcfa36620473 (patch)
tree6ce26cef57e7a3b60507b823191afed84d3f36a4 /arch/powerpc/kernel/entry_64.S
parent990118c84b3e90b2b5354b6e2acd961044d7fa12 (diff)
downloadlinux-fsl-qoriq-9424fabf8617c15e18a5ffd29bc3bcfa36620473.tar.xz
powerpc: Fix 64-bit BookE FP unavailable exceptions
We were using CR0.EQ after EXCEPTION_COMMON, hoping it still contained whether we came from userspace or kernel space. However, under some circumstances, EXCEPTION_COMMON will call C code and clobber non-volatile registers, so we really need to re-load the previous MSR from the stackframe and re-test. While there, invert the condition to make the fast path more obvious and remove the BUG_OPCODE which was a debugging leftover and call .ret_from_except as we should. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
0 files changed, 0 insertions, 0 deletions