diff options
author | Chuck Ebbert <76306.1226@compuserve.com> | 2005-09-13 10:55:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-13 18:59:04 +0200 |
commit | 33333373c40633cec8791a284e84e4b116522c8f (patch) | |
tree | 4f2572d98f9ecf21eac072e9de748c2c69062432 /arch/i386/kernel | |
parent | Merge master.kernel.org:/pub/scm/linux/kernel/git/chrisw/lsm-2.6 (diff) | |
download | linux-33333373c40633cec8791a284e84e4b116522c8f.tar.xz linux-33333373c40633cec8791a284e84e4b116522c8f.zip |
[PATCH] i386: Ignore masked FPU exceptions
Masked FPU exceptions should obviously not happen in the first place,
but if they do, ignoring them seems to be 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.
That would also explain the behaviour Ondrej Zary reported on the MII.
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/traps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index 09a58cb6daa7..431a551e46ea 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c @@ -807,8 +807,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 */ /* |