From fb17ced7033015f77124ac5fd8de440a5319ca39 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 1 Sep 2015 18:26:29 +0000 Subject: [PATCH] [NTOS:KE] - Enable DPC timeout check on debug builds. Suggested by Stefan svn path=/trunk/; revision=68902 --- reactos/ntoskrnl/ke/dpc.c | 2 ++ reactos/ntoskrnl/ke/time.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/dpc.c b/reactos/ntoskrnl/ke/dpc.c index 47772379ca2..d47ee9d7824 100644 --- a/reactos/ntoskrnl/ke/dpc.c +++ b/reactos/ntoskrnl/ke/dpc.c @@ -601,8 +601,10 @@ KiRetireDpcList(IN PKPRCB Prcb) /* Decrease the queue depth */ DpcData->DpcQueueDepth--; +#if DBG /* Clear DPC Time */ Prcb->DebugDpcTime = 0; +#endif /* Release the lock */ KeReleaseSpinLockFromDpcLevel(&DpcData->DpcLock); diff --git a/reactos/ntoskrnl/ke/time.c b/reactos/ntoskrnl/ke/time.c index f54b9258a46..ef92051f143 100644 --- a/reactos/ntoskrnl/ke/time.c +++ b/reactos/ntoskrnl/ke/time.c @@ -184,12 +184,12 @@ KeUpdateRunTime(IN PKTRAP_FRAME TrapFrame, /* Handle being in a DPC */ Prcb->DpcTime++; -#if 0 //DBG +#if DBG /* Update the DPC time */ Prcb->DebugDpcTime++; /* Check if we have timed out */ - if (Prcb->DebugDpcTime == KiDPCTimeout); + if (Prcb->DebugDpcTime == KiDPCTimeout) { /* We did! */ DbgPrint("*** DPC routine > 1 sec --- This is not a break in KeUpdateSystemTime\n");