MIPS: Send proper signal and siginfo on FP emulator faults.
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 21 Oct 2010 23:32:26 +0000 (16:32 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 16 Dec 2010 18:10:57 +0000 (18:10 +0000)
commit515b029d005b5694cf612a0a5ca6f861a7e45362
tree983f7fea48513cfae6c7f96d4d4036475d8130b1
parent0bc6791707694c77b3543de39f77972a65de917a
MIPS: Send proper signal and siginfo on FP emulator faults.

We were unconditionally sending SIGBUS with an empty siginfo on FP
emulator faults.  This differs from what happens when real floating
point hardware would get a fault.

For most faults we need to send SIGSEGV with the faulting address
filled in in the struct siginfo.

Reported-by: Camm Maguire <camm@maguirefamily.org>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Cc: Camm Maguire <camm@maguirefamily.org>
Patchwork: https://patchwork.linux-mips.org/patch/1727/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c
arch/mips/math-emu/cp1emu.c