提交 23902d95 编写于 作者: M Michal Simek

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

Signed-off-by: NJohn Williams <john.williams@petalogix.com>
上级 bfc32ad0
......@@ -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 " \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册