Author: hbelusca Date: Sun Sep 28 22:00:04 2014 New Revision: 64382
URL: http://svn.reactos.org/svn/reactos?rev=64382&view=rev Log: [FAST486] - Display a DPRINT when the CPU triple-faults. - Add the Ac flag to the dump function.
Modified: trunk/reactos/lib/fast486/common.c trunk/reactos/lib/fast486/fast486.c
Modified: trunk/reactos/lib/fast486/common.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/common.c?rev=64... ============================================================================== --- trunk/reactos/lib/fast486/common.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/common.c [iso-8859-1] Sun Sep 28 22:00:04 2014 @@ -317,6 +317,10 @@ /* Check if this is a triple fault */ if (State->ExceptionCount == 3) { + DPRINT("Fast486ExceptionWithErrorCode(%04X:%08X) -- Triple fault\n", + State->SegmentRegs[FAST486_REG_CS].Selector, + State->InstPtr.Long); + /* Reset the CPU */ Fast486Reset(State); return;
Modified: trunk/reactos/lib/fast486/fast486.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/fast486.c?rev=6... ============================================================================== --- trunk/reactos/lib/fast486/fast486.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/fast486.c [iso-8859-1] Sun Sep 28 22:00:04 2014 @@ -346,7 +346,7 @@ State->SegmentRegs[FAST486_REG_GS].Base, State->SegmentRegs[FAST486_REG_GS].Limit, State->SegmentRegs[FAST486_REG_GS].Dpl); - DbgPrint("\nFlags: %08X (%s %s %s %s %s %s %s %s %s %s %s %s) Iopl: %u\n", + DbgPrint("\nFlags: %08X (%s %s %s %s %s %s %s %s %s %s %s %s %s) Iopl: %u\n", State->Flags.Long, State->Flags.Cf ? "CF" : "cf", State->Flags.Pf ? "PF" : "pf", @@ -360,6 +360,7 @@ State->Flags.Nt ? "NT" : "nt", State->Flags.Rf ? "RF" : "rf", State->Flags.Vm ? "VM" : "vm", + State->Flags.Ac ? "AC" : "ac", State->Flags.Iopl); DbgPrint("\nControl Registers:\n" "CR0 = %08X\tCR2 = %08X\tCR3 = %08X\n",