android_kernel_motorola_sm6225/arch/sh
Paul Mundt 53f983a90d sh: Fix PC adjustments for varying opcode length.
There are a few different cases for figuring out how to
size the instruction. We read in the instruction located
at regs->pc - 4 when rewinding the opcode to figure out if
there's a 32-bit opcode before the faulting instruction, with
a default of a - 2 adjustment on a mismatch. In practice this
works for the cases where pc - 4 is just another 16-bit opcode,
or we happen to have a 32-bit and a 16-bit immediately
preceeding the pc value.

In the cases where we aren't rewinding, this is much less ugly..

We also don't bother fixing up the places where we're explicitly
dealing with 16-bit instructions, since this might lead to
confusion regarding the encoding size possibilities on other
CPU variants.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2007-05-09 01:35:01 +00:00
..
boards sh: R7785RP board updates. 2007-05-07 02:11:57 +00:00
boot sh: Fix .empty_zero_page alignment for PAGE_SIZE > 4096. 2006-12-12 08:53:29 +09:00
cchips sh: rts7751r2d board updates. 2007-02-15 18:20:52 +09:00
configs sh: Update r7780rp defconfig. 2007-05-07 02:11:57 +00:00
drivers header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
kernel sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
lib sh: Kill off udivdi3 div64_32 wrapping. 2007-05-07 02:11:55 +00:00
math-emu sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
mm sh: generic quicklist support. 2007-05-09 01:35:00 +00:00
oprofile sh: Fixup cpu_data references for the non-boot CPUs. 2007-02-13 10:54:45 +09:00
tools sh: SH7780 Solution Engine board support. 2007-05-07 02:11:55 +00:00
Kconfig sh: Solution Engine 7722 board support. 2007-05-07 02:11:57 +00:00
Kconfig.debug sh: Solution Engine SH7705 board and CPU updates. 2007-05-07 02:11:56 +00:00
Makefile sh: Solution Engine 7722 board support. 2007-05-07 02:11:57 +00:00