mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
[NTOS:KD:KDBG] Integration into KD framework (Part 2/3)
Add redirections for KdSave/KdRestore and KdD0Transition/KdD3Transition. Both KDBG and KD(TERM) need those since they will become external transport DLLs later.
This commit is contained in:
parent
2046a17ef4
commit
0d0ffb7d7d
3 changed files with 85 additions and 0 deletions
|
@ -91,6 +91,10 @@
|
||||||
#include <kddll.h>
|
#include <kddll.h>
|
||||||
#ifdef KDBG
|
#ifdef KDBG
|
||||||
/* Define new names for these exports also present in KDBG */
|
/* Define new names for these exports also present in KDBG */
|
||||||
|
#define KdD0Transition KdbgD0Transition
|
||||||
|
#define KdD3Transition KdbgD3Transition
|
||||||
|
#define KdSave KdbgSave
|
||||||
|
#define KdRestore KdbgRestore
|
||||||
#define KdSendPacket KdbgSendPacket
|
#define KdSendPacket KdbgSendPacket
|
||||||
#define KdReceivePacket KdbgReceivePacket
|
#define KdReceivePacket KdbgReceivePacket
|
||||||
/* And reload the definitions with these new names */
|
/* And reload the definitions with these new names */
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
#undef KdD0Transition
|
||||||
|
#undef KdD3Transition
|
||||||
|
#undef KdSave
|
||||||
|
#undef KdRestore
|
||||||
|
|
||||||
/* PUBLIC FUNCTIONS *********************************************************/
|
/* PUBLIC FUNCTIONS *********************************************************/
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
|
@ -446,4 +451,38 @@ KdDebuggerInitialize1(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdD0Transition(VOID)
|
||||||
|
{
|
||||||
|
/* Nothing to do */
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdD3Transition(VOID)
|
||||||
|
{
|
||||||
|
/* Nothing to do */
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdSave(
|
||||||
|
_In_ BOOLEAN SleepTransition)
|
||||||
|
{
|
||||||
|
/* Nothing to do */
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdRestore(
|
||||||
|
_In_ BOOLEAN SleepTransition)
|
||||||
|
{
|
||||||
|
/* Nothing to do */
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -22,6 +22,48 @@ static NTSTATUS KdbgContinueStatus = STATUS_SUCCESS;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdD0Transition(VOID)
|
||||||
|
#undef KdD0Transition
|
||||||
|
#define pKdD0Transition KdD0Transition
|
||||||
|
{
|
||||||
|
/* Call KdTerm */
|
||||||
|
return pKdD0Transition();
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdD3Transition(VOID)
|
||||||
|
#undef KdD3Transition
|
||||||
|
#define pKdD3Transition KdD3Transition
|
||||||
|
{
|
||||||
|
/* Call KdTerm */
|
||||||
|
return pKdD3Transition();
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdSave(
|
||||||
|
_In_ BOOLEAN SleepTransition)
|
||||||
|
#undef KdSave
|
||||||
|
#define pKdSave KdSave
|
||||||
|
{
|
||||||
|
/* Call KdTerm */
|
||||||
|
return pKdSave(SleepTransition);
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdRestore(
|
||||||
|
_In_ BOOLEAN SleepTransition)
|
||||||
|
#undef KdRestore
|
||||||
|
#define pKdRestore KdRestore
|
||||||
|
{
|
||||||
|
/* Call KdTerm */
|
||||||
|
return pKdRestore(SleepTransition);
|
||||||
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdSendPacket(
|
KdSendPacket(
|
||||||
|
|
Loading…
Reference in a new issue