| To: | ralf@linux-mips.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | Generate SIGILL again |
| From: | Daniel Jacobowitz <dan@debian.org> |
| Date: | Sat, 26 Nov 2005 22:34:41 -0500 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.8i |
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>
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 7f60f61..63db2fa 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -534,13 +534,14 @@ static inline int simulate_rdhwr(struct
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)
--
Daniel Jacobowitz
CodeSourcery, LLC
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] fix gdb-stub for kernel compiled with higher ISA level, Atsushi Nemoto |
|---|---|
| Next by Date: | PIC/Cardbus on AU1200, Matej Kupljen |
| Previous by Thread: | [PATCH] Fix Au1550 OHCI memory map size, Sergei Shtylyov |
| Next by Thread: | PIC/Cardbus on AU1200, Matej Kupljen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |