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=2251…
==============================================================================
--- 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=2…
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.def (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.def Fri Jun 23 01:26:31 2006
@@ -503,6 +503,7 @@
@IofCallDriver@8
@IofCompleteRequest@8
IoIsWdmVersionAvailable@8
+KdComPortInUse DATA
KdDebuggerEnabled DATA
KdDebuggerNotPresent DATA
KdDisableDebugger@0