sh: Move lookup_exception_vector() out to asm/system_32.h.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 21 Sep 2008 03:00:23 +0000 (12:00 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 21 Sep 2008 03:00:23 +0000 (12:00 +0900)
commit4c59e2942e92d2d776bcd038604a5c3c1d56d3ac
tree56185c62c51852cf9c065b4d1b0313f69295bf27
parent347cd34f4b32be30d2a6d92fe4d6eac04b00a637
sh: Move lookup_exception_vector() out to asm/system_32.h.

There are other places where we want to have access to the trap/exception
number, so move out the lookup_exception_vector() helper. While we're at
it, refactor it slightly to return the vector instead.

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