Author: sginsberg
Date: Sat Feb 18 13:39:08 2012
New Revision: 55680

URL: http://svn.reactos.org/svn/reactos?rev=55680&view=rev
Log:
[NTOSKRNL]
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.

Modified:
    trunk/reactos/ntoskrnl/kd/kdinit.c
    trunk/reactos/ntoskrnl/kd64/kdinit.c

Modified: trunk/reactos/ntoskrnl/kd/kdinit.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdinit.c?rev=55680&r1=55679&r2=55680&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kd/kdinit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd/kdinit.c [iso-8859-1] Sat Feb 18 13:39:08 2012
@@ -10,11 +10,6 @@
 #include <ntoskrnl.h>
 #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 @@
 }
 
 BOOLEAN
-INIT_FUNCTION
 NTAPI
 KdInitSystem(ULONG BootPhase,
              PLOADER_PARAMETER_BLOCK LoaderBlock)

Modified: trunk/reactos/ntoskrnl/kd64/kdinit.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd64/kdinit.c?rev=55680&r1=55679&r2=55680&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kd64/kdinit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd64/kdinit.c [iso-8859-1] Sat Feb 18 13:39:08 2012
@@ -70,7 +70,6 @@
 
 BOOLEAN
 NTAPI
-INIT_FUNCTION
 KdInitSystem(IN ULONG BootPhase,
              IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 {


Reply via email to