diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/ptrace.h | 8 | ||||
-rw-r--r-- | include/asm-mips/system.h | 9 |
2 files changed, 8 insertions, 9 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 */ |
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 9428057a50cf..5e1289c85ed9 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <asm/barrier.h> | 19 | #include <asm/barrier.h> |
20 | #include <asm/cpu-features.h> | 20 | #include <asm/cpu-features.h> |
21 | #include <asm/dsp.h> | 21 | #include <asm/dsp.h> |
22 | #include <asm/ptrace.h> | ||
23 | #include <asm/war.h> | 22 | #include <asm/war.h> |
24 | 23 | ||
25 | 24 | ||
@@ -336,14 +335,6 @@ extern void *set_except_vector(int n, void *addr); | |||
336 | extern unsigned long ebase; | 335 | extern unsigned long ebase; |
337 | extern void per_cpu_trap_init(void); | 336 | extern void per_cpu_trap_init(void); |
338 | 337 | ||
339 | extern NORET_TYPE void die(const char *, struct pt_regs *); | ||
340 | |||
341 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) | ||
342 | { | ||
343 | if (unlikely(!user_mode(regs))) | ||
344 | die(str, regs); | ||
345 | } | ||
346 | |||
347 | extern int stop_a_enabled; | 338 | extern int stop_a_enabled; |
348 | 339 | ||
349 | /* | 340 | /* |