kernel_optimize_test/arch/sh
Paul Mundt baf4326e49 sh: interrupt exception handling rework
Kill off interrupt_table for all of the CPU subtypes, we now
default in to stepping in to do_IRQ() for _all_ IRQ exceptions
and counting the spurious ones, rather than simply flipping on
the ones we cared about. This and enabling the IRQ by default
automatically has already uncovered a couple of bugs and IRQs
that weren't being caught, as well as some that are being
generated far too often (SCI Tx Data Empty, for example).

The general rationale is to use a marker for interrupt exceptions,
test for it in the handle_exception() path, and skip out to
do_IRQ() if it's found. Everything else follows the same behaviour
of finding the cached EXPEVT value in r2/r2_bank, we just rip out
the INTEVT read from entry.S entirely (except for in the kGDB NMI
case, which is another matter).

Note that while this changes the do_IRQ() semantics regarding r4
handling, they were fundamentally broken anyways (relying entirely
on r2_bank for the cached code). With this, we do the INTEVT read
from do_IRQ() itself (in the CONFIG_CPU_HAS_INTEVT case), or fall
back on r4 for the muxed IRQ number, which should also be closer
to what SH-2 and SH-2A want anyways.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2006-10-12 12:03:04 +09:00
..
boards sh: Default enable R7780RP IRQs. 2006-10-12 11:56:31 +09:00
boot sh: Initial gitignore list 2006-10-03 13:16:15 +09:00
cchips sh: Updates for IRQ handler changes. 2006-10-06 15:31:16 +09:00
configs sh: defconfig updates. 2006-10-03 13:08:20 +09:00
drivers sh: Fix pr_debug statements for sh4 2006-10-06 15:36:15 +09:00
kernel sh: interrupt exception handling rework 2006-10-12 12:03:04 +09:00
lib sh: Fix memcpy() build error on sh4eb. 2006-09-27 17:50:03 +09:00
math-emu sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
mm sh: Zero-out coherent buffer in consistent_alloc(). 2006-10-10 18:33:10 +09:00
oprofile sh: Add SH7750S/SH7091 rules for SH7750 oprofile driver. 2006-09-27 14:30:11 +09:00
tools sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
Kconfig sh: First step at generic timeofday support. 2006-10-06 15:26:21 +09:00
Kconfig.debug sh: Add support for 4K stacks. 2006-09-27 18:22:14 +09:00
Makefile sh: Solution Engine SH7343 board support. 2006-09-27 18:09:34 +09:00