[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Thu, 6 May 2010 01:45:10 +0000 (01:45 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 6 May 2010 01:45:10 +0000 (01:45 +0000)
- 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

reactos/ntoskrnl/kd/kdinit.c

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