microblaze: Generate correct signal and siginfo for integer div-by-zero
authorMichal Simek <monstr@monstr.eu>
Tue, 22 Sep 2009 06:58:47 +0000 (08:58 +0200)
committerMichal Simek <monstr@monstr.eu>
Tue, 22 Sep 2009 08:00:44 +0000 (10:00 +0200)
Signed-off-by: John Williams <john.williams@petalogix.com>
arch/microblaze/kernel/exceptions.c

index e64a5c7282a557c909c1bc6fd8c18f09ac588414..d9f70f83097fc5f3c0f010b6a96f1c33f383ba47 100644 (file)
@@ -116,7 +116,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
                if (user_mode(regs)) {
                        pr_debug(KERN_WARNING "Divide by zero exception " \
                                                        "in user mode\n");
-                       _exception(SIGILL, regs, ILL_ILLOPC, addr);
+                       _exception(SIGILL, regs, FPE_INTDIV, addr);
                        return;
                }
                printk(KERN_WARNING "Divide by zero exception " \