mirror of
https://github.com/reactos/reactos.git
synced 2025-05-04 05:03:22 +00:00
Export KdComPortInUse
Print a header when debugging to serial port svn path=/trunk/; revision=22512
This commit is contained in:
parent
f1df497132
commit
37ac31e89d
2 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -503,6 +503,7 @@ IoWriteTransferCount DATA
|
|||
@IofCallDriver@8
|
||||
@IofCompleteRequest@8
|
||||
IoIsWdmVersionAvailable@8
|
||||
KdComPortInUse DATA
|
||||
KdDebuggerEnabled DATA
|
||||
KdDebuggerNotPresent DATA
|
||||
KdDisableDebugger@0
|
||||
|
|
Loading…
Reference in a new issue