[ros-diffs] [hpoussin] 22512: Export KdComPortInUse Print a header when debugging to serial port

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Thu Jun 22 23:26:31 CEST 2006


Author: hpoussin
Date: Fri Jun 23 01:26:31 2006
New Revision: 22512

URL: http://svn.reactos.ru/svn/reactos?rev=22512&view=rev
Log:
Export KdComPortInUse
Print a header when debugging to serial port

Modified:
    trunk/reactos/ntoskrnl/kd/kdio.c
    trunk/reactos/ntoskrnl/ntoskrnl.def

Modified: trunk/reactos/ntoskrnl/kd/kdio.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/kd/kdio.c?rev=22512&r1=22511&r2=22512&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kd/kdio.c (original)
+++ trunk/reactos/ntoskrnl/kd/kdio.c Fri Jun 23 01:26:31 2006
@@ -26,6 +26,8 @@
 
 /* Current Port in use. FIXME: Do we support more then one? */
 ULONG KdpPort;
+/* If serial debugging is enabled, is pointing to the UART base address. */
+PUCHAR *KdComPortInUse;
 
 /* DEBUG LOG FUNCTIONS *******************************************************/
 
@@ -97,6 +99,8 @@
 
     if (BootPhase == 0)
     {
+        KdComPortInUse = NULL;
+
         /* Write out the functions that we support for now */
         DispatchTable->KdpInitRoutine = KdpInitDebugLog;
         DispatchTable->KdpPrintRoutine = KdpPrintToLog;
@@ -180,9 +184,14 @@
             KdpDebugMode.Serial = FALSE;
             return;
         }
+        KdComPortInUse = (PUCHAR*)&SerialPortInfo.BaseAddress;
 
         /* Register as a Provider */
         InsertTailList(&KdProviders, &DispatchTable->KdProvidersList);
+        
+        /* Display separator + ReactOS version at start of the debug log */
+        DPRINT1("---------------------------------------------------------------\n");
+        DPRINT1("ReactOS "KERNEL_VERSION_STR" (Build "KERNEL_VERSION_BUILD_STR")\n");
     }
     else if (BootPhase == 2)
     {

Modified: trunk/reactos/ntoskrnl/ntoskrnl.def
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.def?rev=22512&r1=22511&r2=22512&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.def (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.def Fri Jun 23 01:26:31 2006
@@ -503,6 +503,7 @@
 @IofCallDriver at 8
 @IofCompleteRequest at 8
 IoIsWdmVersionAvailable at 8
+KdComPortInUse DATA
 KdDebuggerEnabled DATA
 KdDebuggerNotPresent DATA
 KdDisableDebugger at 0




More information about the Ros-diffs mailing list