Explorar o código

microblaze: Generate correct signal and siginfo for integer div-by-zero

Signed-off-by: John Williams <john.williams@petalogix.com>
Michal Simek %!s(int64=16) %!d(string=hai) anos
pai
achega
23902d95c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/microblaze/kernel/exceptions.c

+ 1 - 1
arch/microblaze/kernel/exceptions.c

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