[NTOS:KE]

- Enable DPC timeout check on debug builds. Suggested by Stefan

svn path=/trunk/; revision=68902
This commit is contained in:
Thomas Faber 2015-09-01 18:26:29 +00:00
parent 62945a0c1c
commit fb17ced703
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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");