From 065829bcf4132af11a0fb55905d4b298806fa8f1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 10 Dec 2006 15:02:17 +0000 Subject: [PATCH] --- yaml --- r: 44171 b: refs/heads/master c: 2d911e9a4e74ddbd059f9dabea402a119ef22e3d h: refs/heads/master i: 44169: d8a38a3e174b3ea0fe733ab38a063eba17276d21 44167: acf1ea2acf3dfd2e7ca673c4437c9233e9ae3cc9 v: v3 --- [refs] | 2 +- trunk/include/asm-mips/ptrace.h | 8 ++++++++ trunk/include/asm-mips/system.h | 9 --------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 75cfdb6a20e2..44d422feb733 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 86384d544157db23879064cde36061cdcafc6794 +refs/heads/master: 2d911e9a4e74ddbd059f9dabea402a119ef22e3d diff --git a/trunk/include/asm-mips/ptrace.h b/trunk/include/asm-mips/ptrace.h index 30bf555faeaa..8a1f2b6f04ac 100644 --- a/trunk/include/asm-mips/ptrace.h +++ b/trunk/include/asm-mips/ptrace.h @@ -82,6 +82,14 @@ struct pt_regs { extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); +extern NORET_TYPE void die(const char *, struct pt_regs *); + +static inline void die_if_kernel(const char *str, struct pt_regs *regs) +{ + if (unlikely(!user_mode(regs))) + die(str, regs); +} + #endif #endif /* _ASM_PTRACE_H */ diff --git a/trunk/include/asm-mips/system.h b/trunk/include/asm-mips/system.h index 9428057a50cf..5e1289c85ed9 100644 --- a/trunk/include/asm-mips/system.h +++ b/trunk/include/asm-mips/system.h @@ -19,7 +19,6 @@ #include #include #include -#include #include @@ -336,14 +335,6 @@ extern void *set_except_vector(int n, void *addr); extern unsigned long ebase; extern void per_cpu_trap_init(void); -extern NORET_TYPE void die(const char *, struct pt_regs *); - -static inline void die_if_kernel(const char *str, struct pt_regs *regs) -{ - if (unlikely(!user_mode(regs))) - die(str, regs); -} - extern int stop_a_enabled; /*