summaryrefslogtreecommitdiffstats
path: root/arch/score/include/asm/bug.h
diff options
context:
space:
mode:
authorDavid Howells2012-03-28 19:30:02 +0200
committerDavid Howells2012-03-28 19:30:02 +0200
commit4eb14db4440febb7e560eb8ab2c099bc6e11a0ac (patch)
tree6a4d408111b670220c1515c1f688657c65b757cd /arch/score/include/asm/bug.h
parentDisintegrate asm/system.h for S390 (diff)
downloadkernel-qcow2-linux-4eb14db4440febb7e560eb8ab2c099bc6e11a0ac.tar.gz
kernel-qcow2-linux-4eb14db4440febb7e560eb8ab2c099bc6e11a0ac.tar.xz
kernel-qcow2-linux-4eb14db4440febb7e560eb8ab2c099bc6e11a0ac.zip
Disintegrate asm/system.h for Score
Disintegrate asm/system.h for Score. Not compiled. Signed-off-by: David Howells <dhowells@redhat.com> cc: Chen Liqin <liqin.chen@sunplusct.com>
Diffstat (limited to 'arch/score/include/asm/bug.h')
-rw-r--r--arch/score/include/asm/bug.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/score/include/asm/bug.h b/arch/score/include/asm/bug.h
index bb76a330bcf1..fd7164af1f04 100644
--- a/arch/score/include/asm/bug.h
+++ b/arch/score/include/asm/bug.h
@@ -3,4 +3,15 @@
#include <asm-generic/bug.h>
+struct pt_regs;
+extern void __die(const char *, struct pt_regs *, const char *,
+ const char *, unsigned long) __attribute__((noreturn));
+extern void __die_if_kernel(const char *, struct pt_regs *, const char *,
+ const char *, unsigned long);
+
+#define die(msg, regs) \
+ __die(msg, regs, __FILE__ ":", __func__, __LINE__)
+#define die_if_kernel(msg, regs) \
+ __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__)
+
#endif /* _ASM_SCORE_BUG_H */