sh: BUG() handling through trapa vector.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 8 Dec 2006 08:41:43 +0000 (17:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 Dec 2006 23:42:08 +0000 (08:42 +0900)
commitdc34d312c7b25d5d0f54c16d143a9526936e5d38
tree3f409a98a130e688ffbe7787f18166b2a29f08a4
parent1b73e6ae45d0353a062d7bea707757a235473cf9
sh: BUG() handling through trapa vector.

Previously we haven't been doing anything with verbose BUG() reporting,
and we've been relying on the oops path for handling BUG()'s, which is
rather sub-optimal.

This switches BUG handling to use a fixed trapa vector (#0x3e) where we
construct a small bug frame post trapa instruction to get the context
right. This also makes it trivial to wire up a DIE_BUG for the atomic
die chain, which we couldn't really do before.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/process.c
arch/sh/kernel/traps.c
include/asm-sh/bug.h