From: Stefan Ginsberg Date: Sat, 18 Feb 2012 13:39:08 +0000 (+0000) Subject: [NTOSKRNL] X-Git-Tag: backups/c++-bringup@60583~383 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=c718e0492267d67cc39149548e80ab74a20d6384 [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. svn path=/trunk/; revision=55680 --- diff --git a/reactos/ntoskrnl/kd/kdinit.c b/reactos/ntoskrnl/kd/kdinit.c index 1f3c0ce8277..ac493850554 100644 --- a/reactos/ntoskrnl/kd/kdinit.c +++ b/reactos/ntoskrnl/kd/kdinit.c @@ -11,11 +11,6 @@ #define NDEBUG #include -#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) diff --git a/reactos/ntoskrnl/kd64/kdinit.c b/reactos/ntoskrnl/kd64/kdinit.c index e45bdc6b3f0..914be3c283b 100644 --- a/reactos/ntoskrnl/kd64/kdinit.c +++ b/reactos/ntoskrnl/kd64/kdinit.c @@ -70,7 +70,6 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag, BOOLEAN NTAPI -INIT_FUNCTION KdInitSystem(IN ULONG BootPhase, IN PLOADER_PARAMETER_BLOCK LoaderBlock) {