[NTOSKRNL]

- Don't enable the kernel debugger if the DEBUG option was not set
- Fixes displaying the BSOD when not booting in debug mode (broken in r41534)

svn path=/trunk/; revision=47110
This commit is contained in:
Cameron Gutman 2010-05-06 01:45:10 +00:00
parent a9e356ef1d
commit 6b6c137341

View file

@ -171,15 +171,14 @@ KdInitSystem(ULONG BootPhase,
{
/* Enable on the serial port */
KdDebuggerEnabled = TRUE;
KdDebuggerNotPresent = FALSE;
KdpDebugMode.Serial = TRUE;
}
#ifdef KDBG
/* Get the KDBG Settings and enable it */
KdDebuggerEnabled = TRUE;
KdDebuggerNotPresent = FALSE;
KdbpGetCommandLineSettings(LoaderBlock->LoadOptions);
/* Get the KDBG Settings */
KdbpGetCommandLineSettings(LoaderBlock->LoadOptions);
#endif
}
/* Get the port and baud rate */
Port = strstr(CommandLine, "DEBUGPORT");