powerpc/4xx: Fix erroneous xmon warning on PowerPC 4xx
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>
Wed, 23 Sep 2009 03:51:04 +0000 (03:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Sep 2009 05:31:49 +0000 (15:31 +1000)
commitdaf8f40391b2a1978ea2071c20959d91fade6b1a
tree6c0cd6e6ee27b2453edc4039bb6a26688db82c14
parentf32af63ed1327451cb91e3816fa043b6c2c52db1
powerpc/4xx: Fix erroneous xmon warning on PowerPC 4xx

The xmon code relies on MSR_RI being non-zero to indicate that an exception
is recoverable.  If it is not, it prints a warning message.  However, the
PowerPC 4xx cores do not have an MSR_RI bit and this warning is produced for
every xmon event.

This introduces an unrecoverable_excp function to determine if an exception
is recoverable or not.  This gets rid of the erroneous warnings on 4xx.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/xmon/xmon.c