diff --git a/reactos/ntoskrnl/kd/kdio.c b/reactos/ntoskrnl/kd/kdio.c index 61b42b6aaaf..811d22f7a64 100644 --- a/reactos/ntoskrnl/kd/kdio.c +++ b/reactos/ntoskrnl/kd/kdio.c @@ -26,6 +26,8 @@ KD_PORT_INFORMATION SerialPortInfo = {DEFAULT_DEBUG_PORT, DEFAULT_DEBUG_BAUD_RAT /* 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 @@ KdpInitDebugLog(PKD_DISPATCH_TABLE DispatchTable, if (BootPhase == 0) { + KdComPortInUse = NULL; + /* Write out the functions that we support for now */ DispatchTable->KdpInitRoutine = KdpInitDebugLog; DispatchTable->KdpPrintRoutine = KdpPrintToLog; @@ -180,9 +184,14 @@ KdpSerialInit(PKD_DISPATCH_TABLE DispatchTable, 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) { diff --git a/reactos/ntoskrnl/ntoskrnl.def b/reactos/ntoskrnl/ntoskrnl.def index 2ff23dd1e0e..6d1ebd1bad4 100644 --- a/reactos/ntoskrnl/ntoskrnl.def +++ b/reactos/ntoskrnl/ntoskrnl.def @@ -503,6 +503,7 @@ IoWriteTransferCount DATA @IofCallDriver@8 @IofCompleteRequest@8 IoIsWdmVersionAvailable@8 +KdComPortInUse DATA KdDebuggerEnabled DATA KdDebuggerNotPresent DATA KdDisableDebugger@0