diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 10:02:17 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 16:52:11 -0500 |
commit | 2d911e9a4e74ddbd059f9dabea402a119ef22e3d (patch) | |
tree | 66f94d2fd657e5958469e4d10f3c7342af79375f /include/asm-mips/ptrace.h | |
parent | 86384d544157db23879064cde36061cdcafc6794 (diff) |
[MIPS] Move die and die_if_kernel() from system.h to ptrace.h
This eleminates the need to include ptrace.h into system.h and fixes a
harmless namespace conflict on the PC symbol in bpck.c.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/ptrace.h')
-rw-r--r-- | include/asm-mips/ptrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 30bf555faeaa..8a1f2b6f04ac 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h | |||
@@ -82,6 +82,14 @@ struct pt_regs { | |||
82 | 82 | ||
83 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); | 83 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); |
84 | 84 | ||
85 | extern NORET_TYPE void die(const char *, struct pt_regs *); | ||
86 | |||
87 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) | ||
88 | { | ||
89 | if (unlikely(!user_mode(regs))) | ||
90 | die(str, regs); | ||
91 | } | ||
92 | |||
85 | #endif | 93 | #endif |
86 | 94 | ||
87 | #endif /* _ASM_PTRACE_H */ | 95 | #endif /* _ASM_PTRACE_H */ |