提交 56ebd51b 编写于 作者: D Daniel Jacobowitz 提交者: Ralf Baechle

[MIPS] Generate SIGILL again

    
The rdhwr emulation accidentally swallowed the SIGILL from most other
illegal instructions.  Make sure to return -EFAULT by default.
Signed-off-by: NDaniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 b6c3539b
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册