projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69515f8
)
microblaze: Raise SIGFPE/FPE_INTDIV for div by zero
author
Edgar E. Iglesias
<edgar.iglesias@petalogix.com>
Mon, 22 Aug 2011 17:58:06 +0000
(19:58 +0200)
committer
Michal Simek
<monstr@monstr.eu>
Fri, 14 Oct 2011 10:24:31 +0000
(12:24 +0200)
It fixes the signal nr raised for divizion by zero from
SIGILL to SIGFPE, in accordance to POSIX and other archs.
This came up due to a failed test in the GCC testsuite.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
arch/microblaze/kernel/exceptions.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/exceptions.c
b/arch/microblaze/kernel/exceptions.c
index 66fad23012216e86cb2f91bdfff053f0e080f208..6348dc82f4289f48b36843ad4e94b81ff0e7e36e 100644
(file)
--- a/
arch/microblaze/kernel/exceptions.c
+++ b/
arch/microblaze/kernel/exceptions.c
@@
-119,7
+119,7
@@
asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
case MICROBLAZE_DIV_ZERO_EXCEPTION:
if (user_mode(regs)) {
pr_debug("Divide by zero exception in user mode\n");
- _exception(SIG
ILL
, regs, FPE_INTDIV, addr);
+ _exception(SIG
FPE
, regs, FPE_INTDIV, addr);
return;
}
printk(KERN_WARNING "Divide by zero exception " \