diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-05-07 23:14:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@hera.kernel.org> | 2007-05-08 21:35:01 -0400 |
commit | 44530c696b3fc2c8a45bdc798af85528e065ed80 (patch) | |
tree | 536a42cfd19b278caa318a53ed1575f101c98e12 /include | |
parent | 1039b9a9d830e906efa770db75db8a3e11c47c1a (diff) |
sh: Always define TRAPA_BUG_OPCODE.
Previously this was only set when CONFIG_BUG=y. While we rely
on that for handle_BUG() dispatch, we still want to hand the
opcode off to the die chain notifier for determining the trap
value.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/bug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/bug.h b/include/asm-sh/bug.h index 794c36daf06d..46f925c815ac 100644 --- a/include/asm-sh/bug.h +++ b/include/asm-sh/bug.h | |||
@@ -1,12 +1,12 @@ | |||
1 | #ifndef __ASM_SH_BUG_H | 1 | #ifndef __ASM_SH_BUG_H |
2 | #define __ASM_SH_BUG_H | 2 | #define __ASM_SH_BUG_H |
3 | 3 | ||
4 | #define TRAPA_BUG_OPCODE 0xc33e /* trapa #0x3e */ | ||
5 | |||
4 | #ifdef CONFIG_BUG | 6 | #ifdef CONFIG_BUG |
5 | #define HAVE_ARCH_BUG | 7 | #define HAVE_ARCH_BUG |
6 | #define HAVE_ARCH_WARN_ON | 8 | #define HAVE_ARCH_WARN_ON |
7 | 9 | ||
8 | #define TRAPA_BUG_OPCODE 0xc33e /* trapa #0x3e */ | ||
9 | |||
10 | /** | 10 | /** |
11 | * _EMIT_BUG_ENTRY | 11 | * _EMIT_BUG_ENTRY |
12 | * %1 - __FILE__ | 12 | * %1 - __FILE__ |