patch-2.1.82 linux/arch/i386/math-emu/fpu_entry.c
Next file: linux/arch/i386/math-emu/get_address.c
Previous file: linux/arch/i386/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Jan 25 11:01:48 1998
- Orig file:
v2.1.81/linux/arch/i386/math-emu/fpu_entry.c
- Orig date:
Tue Dec 9 17:57:09 1997
diff -u --recursive --new-file v2.1.81/linux/arch/i386/math-emu/fpu_entry.c linux/arch/i386/math-emu/fpu_entry.c
@@ -728,11 +728,11 @@
FPU_verify_area(VERIFY_WRITE, d, 7*4 + 8*10);
#ifdef PECULIAR_486
S387->cwd &= ~0xe080;
- /* An 80486 sets all the reserved bits to 1. */
- S387->cwd |= 0xffff0000;
+ /* An 80486 sets nearly all of the reserved bits to 1. */
+ S387->cwd |= 0xffff0040;
S387->swd = sstatus_word() | 0xffff0000;
S387->twd |= 0xffff0000;
- S387->fcs |= 0xf8000000;
+ S387->fcs &= ~0xf8000000;
S387->fos |= 0xffff0000;
#endif PECULIAR_486
__copy_to_user(d, &S387->cwd, 7*4);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov