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>
switch (rd) {
case 29:
regs->regs[rt] = ti->tp_value;
switch (rd) {
case 29:
regs->regs[rt] = ti->tp_value;
default:
return -EFAULT;
}
}
default:
return -EFAULT;
}
}
+ /* Not ours. */
+ return -EFAULT;
}
asmlinkage void do_ov(struct pt_regs *regs)
}
asmlinkage void do_ov(struct pt_regs *regs)