diff options
Diffstat (limited to 'arch/openrisc/kernel/traps.c')
-rw-r--r-- | arch/openrisc/kernel/traps.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c index e859bfb118a6..932a8ec2b520 100644 --- a/arch/openrisc/kernel/traps.c +++ b/arch/openrisc/kernel/traps.c | |||
@@ -244,7 +244,7 @@ void __init trap_init(void) | |||
244 | 244 | ||
245 | asmlinkage void do_trap(struct pt_regs *regs, unsigned long address) | 245 | asmlinkage void do_trap(struct pt_regs *regs, unsigned long address) |
246 | { | 246 | { |
247 | force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)address, current); | 247 | force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)address); |
248 | 248 | ||
249 | regs->pc += 4; | 249 | regs->pc += 4; |
250 | } | 250 | } |
@@ -253,7 +253,7 @@ asmlinkage void do_unaligned_access(struct pt_regs *regs, unsigned long address) | |||
253 | { | 253 | { |
254 | if (user_mode(regs)) { | 254 | if (user_mode(regs)) { |
255 | /* Send a SIGBUS */ | 255 | /* Send a SIGBUS */ |
256 | force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)address, current); | 256 | force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)address); |
257 | } else { | 257 | } else { |
258 | printk("KERNEL: Unaligned Access 0x%.8lx\n", address); | 258 | printk("KERNEL: Unaligned Access 0x%.8lx\n", address); |
259 | show_registers(regs); | 259 | show_registers(regs); |
@@ -266,7 +266,7 @@ asmlinkage void do_bus_fault(struct pt_regs *regs, unsigned long address) | |||
266 | { | 266 | { |
267 | if (user_mode(regs)) { | 267 | if (user_mode(regs)) { |
268 | /* Send a SIGBUS */ | 268 | /* Send a SIGBUS */ |
269 | force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, current); | 269 | force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address); |
270 | } else { /* Kernel mode */ | 270 | } else { /* Kernel mode */ |
271 | printk("KERNEL: Bus error (SIGBUS) 0x%.8lx\n", address); | 271 | printk("KERNEL: Bus error (SIGBUS) 0x%.8lx\n", address); |
272 | show_registers(regs); | 272 | show_registers(regs); |
@@ -371,7 +371,7 @@ static inline void simulate_lwa(struct pt_regs *regs, unsigned long address, | |||
371 | 371 | ||
372 | if (get_user(value, lwa_addr)) { | 372 | if (get_user(value, lwa_addr)) { |
373 | if (user_mode(regs)) { | 373 | if (user_mode(regs)) { |
374 | force_sig(SIGSEGV, current); | 374 | force_sig(SIGSEGV); |
375 | return; | 375 | return; |
376 | } | 376 | } |
377 | 377 | ||
@@ -418,7 +418,7 @@ static inline void simulate_swa(struct pt_regs *regs, unsigned long address, | |||
418 | 418 | ||
419 | if (put_user(regs->gpr[rb], vaddr)) { | 419 | if (put_user(regs->gpr[rb], vaddr)) { |
420 | if (user_mode(regs)) { | 420 | if (user_mode(regs)) { |
421 | force_sig(SIGSEGV, current); | 421 | force_sig(SIGSEGV); |
422 | return; | 422 | return; |
423 | } | 423 | } |
424 | 424 | ||
@@ -461,7 +461,7 @@ asmlinkage void do_illegal_instruction(struct pt_regs *regs, | |||
461 | 461 | ||
462 | if (user_mode(regs)) { | 462 | if (user_mode(regs)) { |
463 | /* Send a SIGILL */ | 463 | /* Send a SIGILL */ |
464 | force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)address, current); | 464 | force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)address); |
465 | } else { /* Kernel mode */ | 465 | } else { /* Kernel mode */ |
466 | printk("KERNEL: Illegal instruction (SIGILL) 0x%.8lx\n", | 466 | printk("KERNEL: Illegal instruction (SIGILL) 0x%.8lx\n", |
467 | address); | 467 | address); |