mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOS:KD] Add some annotations.
This commit is contained in:
parent
cee893be99
commit
a8b09eddc4
5 changed files with 30 additions and 30 deletions
|
@ -40,10 +40,9 @@ typedef enum _KD_CONTINUE_TYPE
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(NTAPI*PKDP_INIT_ROUTINE)(
|
(NTAPI *PKDP_INIT_ROUTINE)(
|
||||||
struct _KD_DISPATCH_TABLE *DispatchTable,
|
_In_ struct _KD_DISPATCH_TABLE *DispatchTable,
|
||||||
ULONG BootPhase
|
_In_ ULONG BootPhase);
|
||||||
);
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
|
@ -63,30 +62,27 @@ KdpScreenRelease(VOID);
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpScreenInit(
|
KdpScreenInit(
|
||||||
struct _KD_DISPATCH_TABLE *DispatchTable,
|
_In_ struct _KD_DISPATCH_TABLE *DispatchTable,
|
||||||
ULONG BootPhase
|
_In_ ULONG BootPhase);
|
||||||
);
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpSerialInit(
|
KdpSerialInit(
|
||||||
struct _KD_DISPATCH_TABLE *DispatchTable,
|
_In_ struct _KD_DISPATCH_TABLE *DispatchTable,
|
||||||
ULONG BootPhase
|
_In_ ULONG BootPhase);
|
||||||
);
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpDebugLogInit(
|
KdpDebugLogInit(
|
||||||
struct _KD_DISPATCH_TABLE *DispatchTable,
|
_In_ struct _KD_DISPATCH_TABLE *DispatchTable,
|
||||||
ULONG BootPhase
|
_In_ ULONG BootPhase);
|
||||||
);
|
|
||||||
|
|
||||||
#ifdef KDBG
|
#ifdef KDBG
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpKdbgInit(
|
KdpKdbgInit(
|
||||||
struct _KD_DISPATCH_TABLE *DispatchTable,
|
_In_ struct _KD_DISPATCH_TABLE *DispatchTable,
|
||||||
ULONG BootPhase);
|
_In_ ULONG BootPhase);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -212,8 +212,9 @@ KdpPrintToLogFile(PCHAR String,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpDebugLogInit(PKD_DISPATCH_TABLE DispatchTable,
|
KdpDebugLogInit(
|
||||||
ULONG BootPhase)
|
_In_ PKD_DISPATCH_TABLE DispatchTable,
|
||||||
|
_In_ ULONG BootPhase)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING FileName;
|
UNICODE_STRING FileName;
|
||||||
|
@ -340,8 +341,9 @@ KdpSerialPrint(PCHAR String,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpSerialInit(PKD_DISPATCH_TABLE DispatchTable,
|
KdpSerialInit(
|
||||||
ULONG BootPhase)
|
_In_ PKD_DISPATCH_TABLE DispatchTable,
|
||||||
|
_In_ ULONG BootPhase)
|
||||||
{
|
{
|
||||||
if (!KdpDebugMode.Serial) return;
|
if (!KdpDebugMode.Serial) return;
|
||||||
|
|
||||||
|
@ -504,8 +506,9 @@ KdpScreenPrint(PCHAR String,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpScreenInit(PKD_DISPATCH_TABLE DispatchTable,
|
KdpScreenInit(
|
||||||
ULONG BootPhase)
|
_In_ PKD_DISPATCH_TABLE DispatchTable,
|
||||||
|
_In_ ULONG BootPhase)
|
||||||
{
|
{
|
||||||
if (!KdpDebugMode.Screen) return;
|
if (!KdpDebugMode.Screen) return;
|
||||||
|
|
||||||
|
@ -550,8 +553,8 @@ KdbInitialize(PKD_DISPATCH_TABLE DispatchTable, ULONG BootPhase);
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpKdbgInit(
|
KdpKdbgInit(
|
||||||
PKD_DISPATCH_TABLE DispatchTable,
|
_In_ PKD_DISPATCH_TABLE DispatchTable,
|
||||||
ULONG BootPhase)
|
_In_ ULONG BootPhase)
|
||||||
{
|
{
|
||||||
/* Forward the call */
|
/* Forward the call */
|
||||||
KdbInitialize(DispatchTable, BootPhase);
|
KdbInitialize(DispatchTable, BootPhase);
|
||||||
|
|
|
@ -21,7 +21,8 @@ extern ANSI_STRING KdpLogFileName;
|
||||||
|
|
||||||
static PCHAR
|
static PCHAR
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpGetDebugMode(PCHAR Currentp2)
|
KdpGetDebugMode(
|
||||||
|
_In_ PCHAR Currentp2)
|
||||||
{
|
{
|
||||||
PCHAR p1, p2 = Currentp2;
|
PCHAR p1, p2 = Currentp2;
|
||||||
ULONG Value;
|
ULONG Value;
|
||||||
|
@ -83,7 +84,7 @@ KdpGetDebugMode(PCHAR Currentp2)
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize0(
|
KdDebuggerInitialize0(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
_In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
PCHAR CommandLine, Port = NULL;
|
PCHAR CommandLine, Port = NULL;
|
||||||
|
@ -138,7 +139,7 @@ KdDebuggerInitialize0(
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize1(
|
KdDebuggerInitialize1(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
_In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY CurrentEntry;
|
PLIST_ENTRY CurrentEntry;
|
||||||
PKD_DISPATCH_TABLE CurrentTable;
|
PKD_DISPATCH_TABLE CurrentTable;
|
||||||
|
|
|
@ -348,8 +348,8 @@ KdbDebugPrint(
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdbInitialize(
|
KdbInitialize(
|
||||||
PKD_DISPATCH_TABLE DispatchTable,
|
_In_ PKD_DISPATCH_TABLE DispatchTable,
|
||||||
ULONG BootPhase)
|
_In_ ULONG BootPhase)
|
||||||
{
|
{
|
||||||
PCHAR p1, p2;
|
PCHAR p1, p2;
|
||||||
SHORT Found = FALSE;
|
SHORT Found = FALSE;
|
||||||
|
|
|
@ -9,13 +9,13 @@ typedef ULONG KDSTATUS;
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize0(
|
KdDebuggerInitialize0(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
_In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize1(
|
KdDebuggerInitialize1(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
_In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock
|
||||||
);
|
);
|
||||||
|
|
||||||
KDSTATUS
|
KDSTATUS
|
||||||
|
|
Loading…
Reference in a new issue