Skip to content

Commit

Permalink
[MIPS] Generate SIGILL again
Browse files Browse the repository at this point in the history
    
The rdhwr emulation accidentally swallowed the SIGILL from most other
illegal instructions.  Make sure to return -EFAULT by default.
    
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Daniel Jacobowitz authored and Ralf Baechle committed Dec 1, 2005
1 parent b6c3539 commit 56ebd51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,14 @@ static inline int simulate_rdhwr(struct pt_regs *regs)
switch (rd) {
case 29:
regs->regs[rt] = ti->tp_value;
break;
return 0;
default:
return -EFAULT;
}
}

return 0;
/* Not ours. */
return -EFAULT;
}

asmlinkage void do_ov(struct pt_regs *regs)
Expand Down

0 comments on commit 56ebd51

Please sign in to comment.