mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[KDROSDBG]
Remove some unneeded legacy. svn path=/branches/kd++/; revision=58948
This commit is contained in:
parent
a312f665c7
commit
f5e22351fb
4 changed files with 33 additions and 105 deletions
|
@ -10,7 +10,7 @@ elseif(ARCH STREQUAL "arm")
|
|||
endif(ARCH STREQUAL "i386")
|
||||
list(APPEND SOURCE
|
||||
kdrosdbg.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/kdrosdbg.def)
|
||||
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
||||
|
||||
add_library(kdcom SHARED ${SOURCE})
|
||||
|
||||
|
|
|
@ -169,40 +169,6 @@ KdPortPutByte(IN UCHAR ByteToSend)
|
|||
KdPortPutByteEx(&DefaultPort, ByteToSend);
|
||||
}
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
KdPortRestore(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
while (TRUE);
|
||||
}
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
KdPortSave(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
while (TRUE);
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
KdPortDisableInterrupts(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
while (TRUE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
KdPortEnableInterrupts(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
while (TRUE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* WINDOWS FUNCTIONS **********************************************************/
|
||||
|
||||
NTSTATUS
|
||||
|
@ -221,6 +187,20 @@ KdDebuggerInitialize1(IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
|||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdD0Transition(VOID)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdD3Transition(VOID)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdSave(IN BOOLEAN SleepTransition)
|
||||
|
|
|
@ -355,70 +355,6 @@ KdPortPutByteEx(
|
|||
WRITE_PORT_UCHAR(SER_THR(ComPortBase), ByteToSend);
|
||||
}
|
||||
|
||||
|
||||
/* HAL.KdPortRestore */
|
||||
VOID
|
||||
NTAPI
|
||||
KdPortRestore(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
/* HAL.KdPortSave */
|
||||
VOID
|
||||
NTAPI
|
||||
KdPortSave(VOID)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
/* HAL.KdPortDisableInterrupts */
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
KdPortDisableInterrupts(VOID)
|
||||
{
|
||||
UCHAR ch;
|
||||
|
||||
if (!PortInitialized)
|
||||
return FALSE;
|
||||
|
||||
ch = READ_PORT_UCHAR(SER_MCR(DefaultPort.BaseAddress));
|
||||
ch &= (~(SR_MCR_OUT1 | SR_MCR_OUT2));
|
||||
WRITE_PORT_UCHAR(SER_MCR(DefaultPort.BaseAddress), ch);
|
||||
|
||||
ch = READ_PORT_UCHAR(SER_IER(DefaultPort.BaseAddress));
|
||||
ch &= (~SR_IER_ALL);
|
||||
WRITE_PORT_UCHAR(SER_IER(DefaultPort.BaseAddress), ch);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* HAL.KdPortEnableInterrupts */
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
KdPortEnableInterrupts(VOID)
|
||||
{
|
||||
UCHAR ch;
|
||||
|
||||
if (PortInitialized == FALSE)
|
||||
return FALSE;
|
||||
|
||||
ch = READ_PORT_UCHAR(SER_IER(DefaultPort.BaseAddress));
|
||||
ch &= (~SR_IER_ALL);
|
||||
ch |= SR_IER_ERDA;
|
||||
WRITE_PORT_UCHAR(SER_IER(DefaultPort.BaseAddress), ch);
|
||||
|
||||
ch = READ_PORT_UCHAR(SER_MCR(DefaultPort.BaseAddress));
|
||||
ch &= (~SR_MCR_LOOP);
|
||||
ch |= (SR_MCR_OUT1 | SR_MCR_OUT2);
|
||||
WRITE_PORT_UCHAR(SER_MCR(DefaultPort.BaseAddress), ch);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
@ -441,6 +377,20 @@ KdDebuggerInitialize1(
|
|||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdD0Transition(VOID)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdD3Transition(VOID)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
|
@ -7,15 +7,13 @@
|
|||
@ stdcall KdPortPollByteEx(ptr ptr)
|
||||
@ stdcall KdPortPutByte(long)
|
||||
@ stdcall KdPortPutByteEx(ptr long)
|
||||
@ stdcall KdPortRestore()
|
||||
@ stdcall KdPortSave()
|
||||
@ stdcall KdPortDisableInterrupts()
|
||||
@ stdcall KdPortEnableInterrupts()
|
||||
|
||||
; New KD
|
||||
@ stdcall KdD0Transition()
|
||||
@ stdcall KdD3Transition()
|
||||
@ stdcall KdDebuggerInitialize0(ptr)
|
||||
@ stdcall KdDebuggerInitialize1(ptr)
|
||||
@ stdcall KdSave(long)
|
||||
@ stdcall KdRestore(long)
|
||||
@ stdcall KdReceivePacket(long ptr ptr ptr ptr)
|
||||
@ stdcall KdRestore(long)
|
||||
@ stdcall KdSave(long)
|
||||
@ stdcall KdSendPacket(long ptr ptr ptr)
|
||||
|
|
Loading…
Reference in a new issue