]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sh: Use a jump call table for debug trap handlers.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 13 Dec 2006 08:40:05 +0000 (17:40 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 13 Feb 2007 01:54:43 +0000 (10:54 +0900)
commitf413d0d9fa7abcecc40e115cf4aead372d164a75
tree72146d33f19d338076c55b7597dc15ce3f357f2c
parentec2f9d1331f658433411c58077871e1eef4ee1b4
sh: Use a jump call table for debug trap handlers.

This rips out most of the needlessly complicated sh_bios and kgdb
trap handling, and forces it all through a common fast dispatch path.
As more debug traps are inserted, it's important to keep them in sync
for all of the parts, not just SH-3/4.

As the SH-2 parts are unable to do traps in the >= 0x40 range, we
restrict the debug traps to the 0x30-0x3f range on all parts, and
also bump the kgdb breakpoint trap down in to this range (from 0xff
to 0x3c) so it's possible to use for nommu.

Optionally, this table can be padded out to catch spurious traps for
SH-3/4, but we don't do that yet..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/Makefile
arch/sh/kernel/cpu/sh2/entry.S
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/kernel/debugtraps.S [new file with mode: 0644]
arch/sh/kernel/entry-common.S
arch/sh/kernel/kgdb_stub.c
arch/sh/kernel/process.c
include/asm-sh/kgdb.h