summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorDaniel Jacobowitz2005-11-27 04:34:41 +0100
committerRalf Baechle2005-12-01 12:05:14 +0100
commit56ebd51bae72c2e47c83f6eacf258479d5658ec8 (patch)
treeeb39e5ee383815c0185b910523d5470088f93494 /arch/mips
parent[MIPS] Kconfig: Include init/Kconfig after we've set 32BIT / 64BIT. (diff)
downloadkernel-qcow2-linux-56ebd51bae72c2e47c83f6eacf258479d5658ec8.tar.gz
kernel-qcow2-linux-56ebd51bae72c2e47c83f6eacf258479d5658ec8.tar.xz
kernel-qcow2-linux-56ebd51bae72c2e47c83f6eacf258479d5658ec8.zip
[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: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/traps.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 6f3ff9690686..7058893d5ad2 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -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)