]> err.no Git - linux-2.6/commitdiff
[ARM] 3900/1: Fix VFP Division by Zero exception handling.
authorTakashi Ohmasa <ohmasa.takashi@com.rmk.(none)>
Mon, 23 Oct 2006 10:19:40 +0000 (11:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 28 Oct 2006 09:15:31 +0000 (10:15 +0100)
The SIGFPE signal should be generated if Division by Zero exception is detected.

Signed-off-by: Takashi Ohmasa <ohmasa.takashi@jp.panasonic.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c

index a657a28f08dbbbf701acfe16e18a6b4350430948..f08eafbddcc1ba7660e2d5ed68849b7595c36b49 100644 (file)
@@ -148,6 +148,7 @@ static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_
        /*
         * These are arranged in priority order, least to highest.
         */
+       RAISE(FPSCR_DZC, FPSCR_DZE, FPE_FLTDIV);
        RAISE(FPSCR_IXC, FPSCR_IXE, FPE_FLTRES);
        RAISE(FPSCR_UFC, FPSCR_UFE, FPE_FLTUND);
        RAISE(FPSCR_OFC, FPSCR_OFE, FPE_FLTOVF);