forked from luck/tmp_suning_uos_patched
53f983a90d
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> |
||
---|---|---|
.. | ||
cpu | ||
timers | ||
vsyscall | ||
asm-offsets.c | ||
cf-enabler.c | ||
cpufreq.c | ||
crash_dump.c | ||
debugtraps.S | ||
early_printk.c | ||
entry-common.S | ||
head.S | ||
init_task.c | ||
io_generic.c | ||
io.c | ||
irq.c | ||
kgdb_jmp.S | ||
kgdb_stub.c | ||
machine_kexec.c | ||
Makefile | ||
module.c | ||
pm.c | ||
process.c | ||
ptrace.c | ||
relocate_kernel.S | ||
semaphore.c | ||
setup.c | ||
sh_bios.c | ||
sh_ksyms.c | ||
signal.c | ||
smp.c | ||
stacktrace.c | ||
sys_sh.c | ||
syscalls.S | ||
time.c | ||
traps.c | ||
vmlinux.lds.S |