Author: aandrejevic Date: Tue May 12 17:09:16 2015 New Revision: 67695 URL: http://svn.reactos.org/svn/reactos?rev=67695&view=rev Log: [FAST486] Fix TLB flushing. An unused entry should be INVALID_TLB_ENTRY (0xFFFFFFFF) and not 0.
Modified: trunk/reactos/lib/fast486/common.c trunk/reactos/lib/fast486/extraops.c Modified: trunk/reactos/lib/fast486/common.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/common.c?rev=67695&r1=67694&r2=67695&view=diff ============================================================================== --- trunk/reactos/lib/fast486/common.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/common.c [iso-8859-1] Tue May 12 17:09:16 2015 @@ -834,7 +834,7 @@ } /* Flush the TLB */ - if (State->Tlb) RtlZeroMemory(State->Tlb, NUM_TLB_ENTRIES * sizeof(ULONG)); + if (State->Tlb) RtlFillMemory(State->Tlb, NUM_TLB_ENTRIES * sizeof(ULONG), 0xFF); /* Update the CPL */ if (NewTssLimit >= (sizeof(FAST486_TSS) - 1)) State->Cpl = GET_SEGMENT_RPL(NewTss.Cs); Modified: trunk/reactos/lib/fast486/extraops.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/extraops.c?rev=67695&r1=67694&r2=67695&view=diff ============================================================================== --- trunk/reactos/lib/fast486/extraops.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/extraops.c [iso-8859-1] Tue May 12 17:09:16 2015 @@ -643,7 +643,7 @@ if (State->Tlb && (ModRegRm.Register == (INT)FAST486_REG_CR3)) { /* Flush the TLB */ - RtlZeroMemory(State->Tlb, NUM_TLB_ENTRIES * sizeof(ULONG)); + RtlFillMemory(State->Tlb, NUM_TLB_ENTRIES * sizeof(ULONG), 0xFF); } /* Load a value to the control register */