From f455bcf16113adee53d90ef2a42f8858f4d10320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 28 Sep 2014 22:00:04 +0000 Subject: [PATCH] [FAST486] - 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 | 4 ++++ reactos/lib/fast486/fast486.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/lib/fast486/common.c b/reactos/lib/fast486/common.c index 4babb2d366b..2105457204c 100644 --- a/reactos/lib/fast486/common.c +++ b/reactos/lib/fast486/common.c @@ -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; diff --git a/reactos/lib/fast486/fast486.c b/reactos/lib/fast486/fast486.c index ffbe5aec25d..ce80a8c7f41 100644 --- a/reactos/lib/fast486/fast486.c +++ b/reactos/lib/fast486/fast486.c @@ -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",