Commit | Line | Data |
---|---|---|
6bc9a396 CL |
1 | #ifndef _ASM_SCORE_BUG_H |
2 | #define _ASM_SCORE_BUG_H | |
3 | ||
4 | #include <asm-generic/bug.h> | |
5 | ||
4eb14db4 DH |
6 | struct pt_regs; |
7 | extern void __die(const char *, struct pt_regs *, const char *, | |
8 | const char *, unsigned long) __attribute__((noreturn)); | |
9 | extern void __die_if_kernel(const char *, struct pt_regs *, const char *, | |
10 | const char *, unsigned long); | |
11 | ||
12 | #define die(msg, regs) \ | |
13 | __die(msg, regs, __FILE__ ":", __func__, __LINE__) | |
14 | #define die_if_kernel(msg, regs) \ | |
15 | __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__) | |
16 | ||
6bc9a396 | 17 | #endif /* _ASM_SCORE_BUG_H */ |