[NTOSKRNL]
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 18 Feb 2012 13:39:08 +0000 (13:39 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 18 Feb 2012 13:39:08 +0000 (13:39 +0000)
KdInitSystem may be called after system set up if /CRASHDEBUG is enabled and a bugcheck or NMI occurs. With the INIT discard/delete now implemented, and KdInitSystem marked for INIT, this would have resulted in a crash...during a system crash, if /CRASHDEBUG had been enabled. Fun.

svn path=/trunk/; revision=55680

reactos/ntoskrnl/kd/kdinit.c
reactos/ntoskrnl/kd64/kdinit.c

index 1f3c0ce..ac49385 100644 (file)
 #define NDEBUG
 #include <debug.h>
 
-#if defined (ALLOC_PRAGMA)
-#pragma alloc_text(INIT, KdInitSystem)
-#endif
-
-
 /* Make bochs debug output in the very early boot phase available */
 //#define AUTO_ENABLE_BOCHS
 
@@ -172,7 +167,6 @@ KdpCallInitRoutine(ULONG BootPhase)
 }
 
 BOOLEAN
-INIT_FUNCTION
 NTAPI
 KdInitSystem(ULONG BootPhase,
              PLOADER_PARAMETER_BLOCK LoaderBlock)
index e45bdc6..914be3c 100644 (file)
@@ -70,7 +70,6 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag,
 
 BOOLEAN
 NTAPI
-INIT_FUNCTION
 KdInitSystem(IN ULONG BootPhase,
              IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 {