mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
Further remove legacy, now only 3 functions remain.
svn path=/branches/kd++/; revision=58952
This commit is contained in:
parent
dc9e82b3b4
commit
4908927d8f
|
@ -91,18 +91,6 @@ KdPortInitializeEx(IN PKD_PORT_INFORMATION PortInformation,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
NTAPI
|
|
||||||
KdPortInitialize(IN PKD_PORT_INFORMATION PortInformation,
|
|
||||||
IN ULONG Unknown1,
|
|
||||||
IN ULONG Unknown2)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// Call the extended version
|
|
||||||
//
|
|
||||||
return KdPortInitializeEx(PortInformation, Unknown1, Unknown2);
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortGetByteEx(IN PKD_PORT_INFORMATION PortInformation,
|
KdPortGetByteEx(IN PKD_PORT_INFORMATION PortInformation,
|
||||||
|
@ -129,16 +117,6 @@ KdPortPutByteEx(IN PKD_PORT_INFORMATION PortInformation,
|
||||||
WRITE_REGISTER_ULONG(UART_PL01x_DR, ByteToSend);
|
WRITE_REGISTER_ULONG(UART_PL01x_DR, ByteToSend);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
|
||||||
NTAPI
|
|
||||||
KdPortPutByte(IN UCHAR ByteToSend)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// Call the extended version
|
|
||||||
//
|
|
||||||
KdPortPutByteEx(&DefaultPort, ByteToSend);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* WINDOWS FUNCTIONS **********************************************************/
|
/* WINDOWS FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
|
@ -127,16 +127,23 @@ static BOOLEAN PortInitialized = FALSE;
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
/* HAL.KdPortInitialize */
|
/* ReactOS-specific */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortInitialize(
|
KdPortInitializeEx(
|
||||||
IN PKD_PORT_INFORMATION PortInformation,
|
IN PKD_PORT_INFORMATION PortInformation,
|
||||||
IN ULONG Unknown1,
|
IN ULONG Unknown1,
|
||||||
IN ULONG Unknown2)
|
IN ULONG Unknown2)
|
||||||
{
|
{
|
||||||
SIZE_T i;
|
SIZE_T i;
|
||||||
|
ULONG ComPortBase;
|
||||||
CHAR buffer[80];
|
CHAR buffer[80];
|
||||||
|
ULONG divisor;
|
||||||
|
UCHAR lcr;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Find the port if needed
|
||||||
|
*/
|
||||||
|
|
||||||
if (!PortInitialized)
|
if (!PortInitialized)
|
||||||
{
|
{
|
||||||
|
@ -171,34 +178,9 @@ KdPortInitialize(
|
||||||
PortInitialized = TRUE;
|
PortInitialized = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize port */
|
/*
|
||||||
if (!KdPortInitializeEx(&DefaultPort, Unknown1, Unknown2))
|
* Initialize the port
|
||||||
return FALSE;
|
*/
|
||||||
|
|
||||||
/* set global info */
|
|
||||||
KdComPortInUse = (PUCHAR)DefaultPort.BaseAddress;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* HAL.KdPortInitializeEx ; ReactOS-specific */
|
|
||||||
BOOLEAN
|
|
||||||
NTAPI
|
|
||||||
KdPortInitializeEx(
|
|
||||||
IN PKD_PORT_INFORMATION PortInformation,
|
|
||||||
IN ULONG Unknown1,
|
|
||||||
IN ULONG Unknown2)
|
|
||||||
{
|
|
||||||
ULONG ComPortBase;
|
|
||||||
CHAR buffer[80];
|
|
||||||
ULONG divisor;
|
|
||||||
UCHAR lcr;
|
|
||||||
|
|
||||||
#ifdef _ARM_
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
return FALSE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (PortInformation->BaudRate == 0)
|
if (PortInformation->BaudRate == 0)
|
||||||
PortInformation->BaudRate = DEFAULT_BAUD_RATE;
|
PortInformation->BaudRate = DEFAULT_BAUD_RATE;
|
||||||
|
@ -264,11 +246,14 @@ KdPortInitializeEx(
|
||||||
HalDisplayString(buffer);
|
HalDisplayString(buffer);
|
||||||
#endif /* NDEBUG */
|
#endif /* NDEBUG */
|
||||||
|
|
||||||
|
/* set global info */
|
||||||
|
KdComPortInUse = (PUCHAR)DefaultPort.BaseAddress;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* HAL.KdPortGetByteEx ; ReactOS-specific */
|
/* ReactOS-specific */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortGetByteEx(
|
KdPortGetByteEx(
|
||||||
|
@ -297,7 +282,7 @@ KdPortPutByte(
|
||||||
KdPortPutByteEx(&DefaultPort, ByteToSend);
|
KdPortPutByteEx(&DefaultPort, ByteToSend);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HAL.KdPortPutByteEx ; ReactOS-specific */
|
/* ReactOS-specific */
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortPutByteEx(
|
KdPortPutByteEx(
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
; Old KD
|
|
||||||
@ stdcall KdPortGetByteEx(ptr ptr)
|
|
||||||
@ stdcall KdPortInitialize(ptr long long)
|
|
||||||
@ stdcall KdPortInitializeEx(ptr long long)
|
|
||||||
@ stdcall KdPortPutByte(long)
|
|
||||||
@ stdcall KdPortPutByteEx(ptr long)
|
|
||||||
|
|
||||||
; New KD
|
|
||||||
@ stdcall KdD0Transition()
|
@ stdcall KdD0Transition()
|
||||||
@ stdcall KdD3Transition()
|
@ stdcall KdD3Transition()
|
||||||
@ stdcall KdDebuggerInitialize0(ptr)
|
@ stdcall KdDebuggerInitialize0(ptr)
|
||||||
|
@ -14,3 +6,8 @@
|
||||||
@ stdcall KdRestore(long)
|
@ stdcall KdRestore(long)
|
||||||
@ stdcall KdSave(long)
|
@ stdcall KdSave(long)
|
||||||
@ stdcall KdSendPacket(long ptr ptr ptr)
|
@ stdcall KdSendPacket(long ptr ptr ptr)
|
||||||
|
|
||||||
|
; Legacy KD
|
||||||
|
@ stdcall KdPortGetByteEx(ptr ptr)
|
||||||
|
@ stdcall KdPortInitializeEx(ptr long long)
|
||||||
|
@ stdcall KdPortPutByteEx(ptr long)
|
||||||
|
|
|
@ -23,14 +23,6 @@ extern BOOLEAN KdBreakAfterSymbolLoad;
|
||||||
extern BOOLEAN KdPitchDebugger;
|
extern BOOLEAN KdPitchDebugger;
|
||||||
extern BOOLEAN KdIgnoreUmExceptions;
|
extern BOOLEAN KdIgnoreUmExceptions;
|
||||||
|
|
||||||
BOOLEAN
|
|
||||||
NTAPI
|
|
||||||
KdPortInitialize(
|
|
||||||
PKD_PORT_INFORMATION PortInformation,
|
|
||||||
ULONG Unknown1,
|
|
||||||
ULONG Unknown2
|
|
||||||
);
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortInitializeEx(
|
KdPortInitializeEx(
|
||||||
|
@ -45,12 +37,6 @@ KdPortGetByteEx(
|
||||||
PKD_PORT_INFORMATION PortInformation,
|
PKD_PORT_INFORMATION PortInformation,
|
||||||
PUCHAR ByteReceived);
|
PUCHAR ByteReceived);
|
||||||
|
|
||||||
VOID
|
|
||||||
NTAPI
|
|
||||||
KdPortPutByte(
|
|
||||||
UCHAR ByteToSend
|
|
||||||
);
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortPutByteEx(
|
KdPortPutByteEx(
|
||||||
|
|
Loading…
Reference in a new issue