]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96c97c3d92b4d237ffc176a048413aeaac444c5d
tree983f7fea48513cfae6c7f96d4d4036475d8130b1
parentd69dfce820e982fb9278562bc047611f85547dcc
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