Author: aandrejevic Date: Sat Oct 11 14:40:53 2014 New Revision: 64671
URL: http://svn.reactos.org/svn/reactos?rev=64671&view=rev Log: [FAST486] Revert the previous fix and fix it again, but properly.
Modified: trunk/reactos/lib/fast486/fpu.c
Modified: trunk/reactos/lib/fast486/fpu.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/fpu.c?rev=64671... ============================================================================== --- trunk/reactos/lib/fast486/fpu.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/fpu.c [iso-8859-1] Sat Oct 11 14:40:53 2014 @@ -511,10 +511,10 @@ else { /* Only a few of these instructions have any meaning on a 487 */ - switch ((ModRegRm.SecondRegister << 3) | ModRegRm.Register) + switch ((ModRegRm.Register << 3) | ModRegRm.SecondRegister) { /* FCLEX */ - case 0x42: + case 0x22: { /* Clear exception data */ State->FpuStatus.Ie = @@ -531,7 +531,7 @@ }
/* FINIT */ - case 0x43: + case 0x23: { /* Restore the state */ State->FpuControl.Value = FAST486_FPU_DEFAULT_CONTROL; @@ -542,9 +542,9 @@ }
/* FENI */ - case 0x40: + case 0x20: /* FDISI */ - case 0x41: + case 0x21: { /* These do nothing */ break;