Author: hbelusca
Date: Sun May 5 19:21:03 2013
New Revision: 58948
URL:
http://svn.reactos.org/svn/reactos?rev=58948&view=rev
Log:
[KDROSDBG]
Remove some unneeded legacy.
Modified:
branches/kd++/drivers/base/kdrosdbg/CMakeLists.txt
branches/kd++/drivers/base/kdrosdbg/arm/kdbg.c
branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c
branches/kd++/drivers/base/kdrosdbg/kdrosdbg.spec
Modified: branches/kd++/drivers/base/kdrosdbg/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/kd%2B%2B/drivers/base/kdrosdbg/…
==============================================================================
--- branches/kd++/drivers/base/kdrosdbg/CMakeLists.txt [iso-8859-1] (original)
+++ branches/kd++/drivers/base/kdrosdbg/CMakeLists.txt [iso-8859-1] Sun May 5 19:21:03
2013
@@ -10,7 +10,7 @@
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})
Modified: branches/kd++/drivers/base/kdrosdbg/arm/kdbg.c
URL:
http://svn.reactos.org/svn/reactos/branches/kd%2B%2B/drivers/base/kdrosdbg/…
==============================================================================
--- branches/kd++/drivers/base/kdrosdbg/arm/kdbg.c [iso-8859-1] (original)
+++ branches/kd++/drivers/base/kdrosdbg/arm/kdbg.c [iso-8859-1] Sun May 5 19:21:03 2013
@@ -169,40 +169,6 @@
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
@@ -219,6 +185,20 @@
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+NTAPI
+KdD0Transition(VOID)
+{
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+KdD3Transition(VOID)
+{
+ return STATUS_SUCCESS;
}
NTSTATUS
Modified: branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c
URL:
http://svn.reactos.org/svn/reactos/branches/kd%2B%2B/drivers/base/kdrosdbg/…
==============================================================================
--- branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c [iso-8859-1] (original)
+++ branches/kd++/drivers/base/kdrosdbg/i386/kdbg.c [iso-8859-1] Sun May 5 19:21:03 2013
@@ -355,70 +355,6 @@
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
*/
@@ -439,6 +375,20 @@
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
{
return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+NTAPI
+KdD0Transition(VOID)
+{
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+KdD3Transition(VOID)
+{
+ return STATUS_SUCCESS;
}
/*
Modified: branches/kd++/drivers/base/kdrosdbg/kdrosdbg.spec
URL:
http://svn.reactos.org/svn/reactos/branches/kd%2B%2B/drivers/base/kdrosdbg/…
==============================================================================
--- branches/kd++/drivers/base/kdrosdbg/kdrosdbg.spec [iso-8859-1] (original)
+++ branches/kd++/drivers/base/kdrosdbg/kdrosdbg.spec [iso-8859-1] Sun May 5 19:21:03
2013
@@ -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 KdReceivePacket(long ptr ptr ptr ptr)
+@ stdcall KdRestore(long)
@ stdcall KdSave(long)
-@ stdcall KdRestore(long)
-@ stdcall KdReceivePacket(long ptr ptr ptr ptr)
@ stdcall KdSendPacket(long ptr ptr ptr)