[MIPS] Panic on fp exception in kernel mode.
There should never be a FP exception in kernel mode. Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e1a4e469d7
commit
57725f9eb6
1 changed files with 2 additions and 0 deletions
|
@ -569,6 +569,8 @@ asmlinkage void do_ov(struct pt_regs *regs)
|
||||||
*/
|
*/
|
||||||
asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
|
asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
|
||||||
{
|
{
|
||||||
|
die_if_kernel("FP exception in kernel code", regs);
|
||||||
|
|
||||||
if (fcr31 & FPU_CSR_UNI_X) {
|
if (fcr31 & FPU_CSR_UNI_X) {
|
||||||
int sig;
|
int sig;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue