| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [Patch] / 0 should send SIGFPE not SIGTRAP... |
| From: | David Daney <ddaney@avtrex.com> |
| Date: | Fri, 11 Jun 2004 11:10:44 -0700 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031030 |
I am getting a SIGTRAP whenever an integer divide by 0 happens. It
should be sending SIGFPE.
It looks like kernel/traps.c is a little messed up. The attached patch fixes it for me.The decoding of the break instruction was selecting the wrong bits. It looks like the trap instruction decoding was messed up also. The patch fixes trap also, but I could not figure out how to get gcc to generate the trap form of division, so that part is untested. David Daney. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC] MIPS division by zero and libgcj..., Maciej W. Rozycki |
|---|---|
| Next by Date: | Re: [Patch] / 0 should send SIGFPE not SIGTRAP..., David Daney |
| Previous by Thread: | Is "memory" clobber required for all inline asm which does atomic operation???, Ashok.A |
| Next by Thread: | Re: [Patch] / 0 should send SIGFPE not SIGTRAP..., David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |