aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/kernel/traps.c')
-rw-r--r--arch/nds32/kernel/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index a16e97f7bc75..f4d386b52622 100644
--- a/arch/nds32/kernel/traps.c
+++ b/arch/nds32/kernel/traps.c
@@ -205,7 +205,7 @@ int bad_syscall(int n, struct pt_regs *regs)
205 } 205 }
206 206
207 force_sig_fault(SIGILL, ILL_ILLTRP, 207 force_sig_fault(SIGILL, ILL_ILLTRP,
208 (void __user *)instruction_pointer(regs) - 4, current); 208 (void __user *)instruction_pointer(regs) - 4);
209 die_if_kernel("Oops - bad syscall", regs, n); 209 die_if_kernel("Oops - bad syscall", regs, n);
210 return regs->uregs[0]; 210 return regs->uregs[0];
211} 211}
@@ -263,7 +263,7 @@ static void send_sigtrap(struct pt_regs *regs, int error_code, int si_code)
263 tsk->thread.error_code = error_code; 263 tsk->thread.error_code = error_code;
264 264
265 force_sig_fault(SIGTRAP, si_code, 265 force_sig_fault(SIGTRAP, si_code,
266 (void __user *)instruction_pointer(regs), current); 266 (void __user *)instruction_pointer(regs));
267} 267}
268 268
269void do_debug_trap(unsigned long entry, unsigned long addr, 269void do_debug_trap(unsigned long entry, unsigned long addr,