summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/traps.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-03-28 19:30:03 +0200
committerDavid Howells <dhowells@redhat.com>2012-03-28 19:30:03 +0200
commite839ca528718e68cad32a307dc9aabf01ef3eb05 (patch)
tree5ceb6ece0688455f7205739b71e4b6e04afd2988 /arch/sh/include/asm/traps.h
parentDisintegrate asm/system.h for Score (diff)
downloadlinux-e839ca528718e68cad32a307dc9aabf01ef3eb05.tar.xz
linux-e839ca528718e68cad32a307dc9aabf01ef3eb05.zip
Disintegrate asm/system.h for SH
Disintegrate asm/system.h for SH. Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-sh@vger.kernel.org
Diffstat (limited to 'arch/sh/include/asm/traps.h')
-rw-r--r--arch/sh/include/asm/traps.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/sh/include/asm/traps.h b/arch/sh/include/asm/traps.h
new file mode 100644
index 000000000000..afd9df8d0641
--- /dev/null
+++ b/arch/sh/include/asm/traps.h
@@ -0,0 +1,21 @@
+#ifndef __ASM_SH_TRAPS_H
+#define __ASM_SH_TRAPS_H
+
+#include <linux/compiler.h>
+
+#ifdef CONFIG_SUPERH32
+# include "traps_32.h"
+#else
+# include "traps_64.h"
+#endif
+
+BUILD_TRAP_HANDLER(address_error);
+BUILD_TRAP_HANDLER(debug);
+BUILD_TRAP_HANDLER(bug);
+BUILD_TRAP_HANDLER(breakpoint);
+BUILD_TRAP_HANDLER(singlestep);
+BUILD_TRAP_HANDLER(fpu_error);
+BUILD_TRAP_HANDLER(fpu_state_restore);
+BUILD_TRAP_HANDLER(nmi);
+
+#endif /* __ASM_SH_TRAPS_H */