mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Preinitialise the com port infos with default values.
- Set the baud rate also in SerialPortInfo. svn path=/trunk/; revision=14820
This commit is contained in:
parent
b55b368e31
commit
c292d7ed88
2 changed files with 4 additions and 9 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
/* VARIABLES ***************************************************************/
|
/* VARIABLES ***************************************************************/
|
||||||
|
|
||||||
KD_PORT_INFORMATION PortInfo;
|
KD_PORT_INFORMATION PortInfo = {DEFAULT_DEBUG_PORT, DEFAULT_DEBUG_BAUD_RATE, 0};
|
||||||
ULONG KdpPortIrq;
|
ULONG KdpPortIrq;
|
||||||
KDP_DEBUG_MODE KdpDebugMode;
|
KDP_DEBUG_MODE KdpDebugMode;
|
||||||
LIST_ENTRY KdProviders;
|
LIST_ENTRY KdProviders;
|
||||||
|
@ -54,11 +54,6 @@ KdpGetWrapperDebugMode(PCHAR Currentp2,
|
||||||
/* Enable Debugging */
|
/* Enable Debugging */
|
||||||
KdDebuggerEnabled = TRUE;
|
KdDebuggerEnabled = TRUE;
|
||||||
WrapperInitRoutine = KdpGdbStubInit;
|
WrapperInitRoutine = KdpGdbStubInit;
|
||||||
|
|
||||||
/* Reset port information to defaults */
|
|
||||||
RtlMoveMemory(&GdbPortInfo, &PortInfo, sizeof(KD_PORT_INFORMATION));
|
|
||||||
PortInfo.ComPort = DEFAULT_DEBUG_PORT;
|
|
||||||
PortInfo.BaudRate = DEFAULT_DEBUG_BAUD_RATE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for PICE Debugging */
|
/* Check for PICE Debugging */
|
||||||
|
@ -210,7 +205,7 @@ KdInitSystem(ULONG BootPhase,
|
||||||
Value = (ULONG)atol(p2);
|
Value = (ULONG)atol(p2);
|
||||||
|
|
||||||
/* Check if it's valid and Set it */
|
/* Check if it's valid and Set it */
|
||||||
if (0 < Value) PortInfo.BaudRate = Value;
|
if (0 < Value) PortInfo.BaudRate = SerialPortInfo.BaudRate = Value;
|
||||||
}
|
}
|
||||||
/* Check Serial Port Settings [IRQ] */
|
/* Check Serial Port Settings [IRQ] */
|
||||||
else if (!_strnicmp(p2, "IRQ=", 4))
|
else if (!_strnicmp(p2, "IRQ=", 4))
|
||||||
|
|
|
@ -22,7 +22,7 @@ CHAR DebugBuffer[BufferSize];
|
||||||
ULONG CurrentPosition;
|
ULONG CurrentPosition;
|
||||||
WORK_QUEUE_ITEM KdpDebugLogQueue;
|
WORK_QUEUE_ITEM KdpDebugLogQueue;
|
||||||
BOOLEAN ItemQueued;
|
BOOLEAN ItemQueued;
|
||||||
KD_PORT_INFORMATION SerialPortInfo;
|
KD_PORT_INFORMATION SerialPortInfo = {DEFAULT_DEBUG_PORT, DEFAULT_DEBUG_BAUD_RATE, 0};
|
||||||
|
|
||||||
/* Current Port in use. FIXME: Do we support more then one? */
|
/* Current Port in use. FIXME: Do we support more then one? */
|
||||||
ULONG KdpPort;
|
ULONG KdpPort;
|
||||||
|
|
Loading…
Reference in a new issue