public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.13] i386: Ignore masked FPU exceptions
@ 2005-09-13  8:55 Chuck Ebbert
  2005-09-13 20:47 ` Ondrej Zary
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Ebbert @ 2005-09-13  8:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Linus Torvalds, Ondrej Zary

I think ignoring masked FPU exceptions on i386 is the right thing to do.
Although there is no documentation available for Cyrix MII, I did find
erratum F-7 for Winchip C6, "FPU instruction may result in spurious
exception under certain conditions" which seems to indicate that this can
happen.

Ondrej, this patch on top of 2.6.13 should fix your Cyrix problems.
Can you confirm?  There was another bug which was already fixed,
so this should be all that's needed now.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

 arch/i386/kernel/traps.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

--- 2.6.13a.orig/arch/i386/kernel/traps.c
+++ 2.6.13a/arch/i386/kernel/traps.c
@@ -804,8 +804,9 @@ void math_error(void __user *eip)
 	cwd = get_fpu_cwd(task);
 	swd = get_fpu_swd(task);
 	switch (swd & ~cwd & 0x3f) {
-		case 0x000:
-		default:
+		case 0x000: /* No unmasked exception */
+			return;
+		default:    /* Multiple exceptions */
 			break;
 		case 0x001: /* Invalid Op */
 			/*
__
Chuck

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-13 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13  8:55 [patch 2.6.13] i386: Ignore masked FPU exceptions Chuck Ebbert
2005-09-13 20:47 ` Ondrej Zary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox