Use a work item only for calling KdSystemDebugControl with code 10 (which is Tab + K, or "Enter Kernel Debugger") because sometimes when the system crashes work items do not work anymore. Thanks to Filip for pointing out the problem.

svn path=/trunk/; revision=14253
This commit is contained in:
Gregor Anich 2005-03-21 17:09:06 +00:00
parent 160084df80
commit 0ac49e9d42

View file

@ -441,7 +441,7 @@ KbdDpcRoutine(PKDPC Dpc,
if (SystemArgument1 == NULL && DoSystemDebug != -1) if (SystemArgument1 == NULL && DoSystemDebug != -1)
{ {
if (KbdWorkItem != NULL) if (KbdWorkItem != NULL && DoSystemDebug == 10) /* 10 is Tab + K (enter kernel debugger) */
{ {
IoQueueWorkItem(KbdWorkItem, (PIO_WORKITEM_ROUTINE)KbdWorkItemRoutine, DelayedWorkQueue, NULL); IoQueueWorkItem(KbdWorkItem, (PIO_WORKITEM_ROUTINE)KbdWorkItemRoutine, DelayedWorkQueue, NULL);
} }