diff options
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r-- | include/asm-mips/system.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index b126545e96ed..330c4e497af3 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -434,15 +434,13 @@ extern void *set_vi_srs_handler (int n, void *addr, int regset); | |||
434 | extern void *set_except_vector(int n, void *addr); | 434 | extern void *set_except_vector(int n, void *addr); |
435 | extern void per_cpu_trap_init(void); | 435 | extern void per_cpu_trap_init(void); |
436 | 436 | ||
437 | extern NORET_TYPE void __die(const char *, struct pt_regs *, const char *file, | 437 | extern NORET_TYPE void die(const char *, struct pt_regs *); |
438 | const char *func, unsigned long line) ATTRIB_NORET; | 438 | |
439 | extern void __die_if_kernel(const char *, struct pt_regs *, const char *file, | 439 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
440 | const char *func, unsigned long line); | 440 | { |
441 | 441 | if (unlikely(!user_mode(regs))) | |
442 | #define die(msg, regs) \ | 442 | die(str, regs); |
443 | __die(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__) | 443 | } |
444 | #define die_if_kernel(msg, regs) \ | ||
445 | __die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__) | ||
446 | 444 | ||
447 | extern int stop_a_enabled; | 445 | extern int stop_a_enabled; |
448 | 446 | ||