From: Benjamin Herrenschmidt Date: Sun, 4 Mar 2012 23:55:04 +0000 (+1100) Subject: powerpc: Fix 64-bit BookE FP unavailable exceptions X-Git-Tag: v3.4-rc1~159^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9424fabf8617c15e18a5ffd29bc3bcfa36620473;p=pandora-kernel.git 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 --- Reading git-diff-tree failed