[FAST486]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 28 Sep 2014 22:00:04 +0000 (22:00 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 28 Sep 2014 22:00:04 +0000 (22:00 +0000)
- Display a DPRINT when the CPU triple-faults.
- Add the Ac flag to the dump function.

svn path=/trunk/; revision=64382

reactos/lib/fast486/common.c
reactos/lib/fast486/fast486.c

index 4babb2d..2105457 100644 (file)
@@ -317,6 +317,10 @@ Fast486ExceptionWithErrorCode(PFAST486_STATE State,
     /* 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;
index ffbe5ae..ce80a8c 100644 (file)
@@ -346,7 +346,7 @@ Fast486DumpState(PFAST486_STATE State)
              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 @@ Fast486DumpState(PFAST486_STATE State)
              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",