sh: cleanup of do_address_error()
authorAndre Draszik <andre.draszik@st.com>
Mon, 24 Aug 2009 06:01:10 +0000 (15:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 06:01:10 +0000 (15:01 +0900)
commit5a0ab35e43a6e3c69893c0091fe6a78ea8b3e443
treefe45c2734484f8889e824a5045170bd4b64db975
parent7436cde6b2ca71049051620c68c26522bb3403bf
sh: cleanup of do_address_error()

This patch fixes a few problems with the existing code in do_address_error().

a) the variable used to printk()d the offending instruction wasn't
   initialized correctly. This is a fix to bug 5727

b) behaviour for CONFIG_CPU_SH2A wasn't correct

c) the 'ignore address error' behaviour didn't update the PC, causing an
   infinite loop.

Signed-off-by: Andre Draszik <andre.draszik@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/traps_32.c