Author: tkreuzer
Date: Sat Dec 13 15:46:38 2008
New Revision: 38057
URL:
http://svn.reactos.org/svn/reactos?rev=38057&view=rev
Log:
Add a hack to wait for WinDbg after KdInitSystem.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/kiinit.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/kiinit.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/kiinit.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/kiinit.c [iso-8859-1] Sat Dec 13
15:46:38 2008
@@ -770,7 +770,20 @@
/* Check for break-in */
// if (KdPollBreakIn()) DbgBreakPointWithStatus(1);
}
-DPRINT1("after KdInitSystem\n");
+FrLdrDbgPrint("after KdInitSystem\n");
+
+ /* Hack! Wait for the debugger! */
+ while (!KdPollBreakIn());
+ DbgBreakPointWithStatus(0);
+
+ /* Display separator + ReactOS version at start of the debug log */
+ DPRINT1("-----------------------------------------------------\n");
+ DPRINT1("ReactOS "KERNEL_VERSION_STR" (Build
"KERNEL_VERSION_BUILD_STR")\n");
+ DPRINT1("Command Line: %s\n", LoaderBlock->LoadOptions);
+ DPRINT1("ARC Paths: %s %s %s %s\n", LoaderBlock->ArcBootDeviceName,
+ LoaderBlock->NtHalPathName,
+ LoaderBlock->ArcHalDeviceName,
+ LoaderBlock->NtBootPathName);
/* Raise to HIGH_LEVEL */
KfRaiseIrql(HIGH_LEVEL);