kernel_optimize_test/arch/sh/kernel
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
..
cpu sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
timers Add IRQF_IRQPOLL flag on sh 2007-05-08 11:15:22 -07:00
vsyscall [PATCH] SH vdso: use install_special_mapping() 2007-02-09 09:25:47 -08:00
asm-offsets.c
cf-enabler.c sh: Solution Engine 7722 board support. 2007-05-07 02:11:57 +00:00
cpufreq.c
crash_dump.c sh: kdump support. 2007-05-07 02:11:56 +00:00
debugtraps.S sh: Use a jump call table for debug trap handlers. 2007-02-13 10:54:43 +09:00
early_printk.c Fixes and cleanups for earlyprintk aka boot console 2007-05-08 11:15:04 -07:00
entry-common.S sh: Clear UBC when not in use. 2007-03-05 14:13:25 +09:00
head.S sh: Fix .empty_zero_page alignment for PAGE_SIZE > 4096. 2006-12-12 08:53:29 +09:00
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
io_generic.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
io.c sh: Optimized readsl()/writesl() support. 2006-09-27 18:25:24 +09:00
irq.c sh: NR_IRQS consolidation. 2007-05-07 02:10:53 +00:00
kgdb_jmp.S
kgdb_stub.c sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
machine_kexec.c sh: kdump support. 2007-05-07 02:11:56 +00:00
Makefile sh: kdump support. 2007-05-07 02:11:56 +00:00
module.c
pm.c sh: APM/PM support. 2006-09-27 16:20:22 +09:00
process.c sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
ptrace.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
relocate_kernel.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
semaphore.c sh: Fixup some uninitialized spinlocks. 2006-09-27 11:31:32 +09:00
setup.c sh: kdump support. 2007-05-07 02:11:56 +00:00
sh_bios.c
sh_ksyms.c sh: Kill off redundant __div64_32 symbol export. 2007-05-09 01:35:01 +00:00
signal.c sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
smp.c [PATCH] cpumask: export cpu_online_map and cpu_possible_map consistently 2006-10-02 07:57:17 -07:00
stacktrace.c simplify the stacktrace code 2007-05-08 11:14:58 -07:00
sys_sh.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
syscalls.S sh: Fix syscall numbering breakage. 2007-02-13 10:54:46 +09:00
time.c [PATCH] Consolidate default sched_clock() 2007-02-11 10:51:28 -08:00
traps.c sh: Fix PC adjustments for varying opcode length. 2007-05-09 01:35:01 +00:00
vmlinux.lds.S sh: generic BUG() support. 2007-05-07 02:10:53 +00:00