mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOS:KD] Import KdpCallInitRoutine() into KdDebuggerInitialize1()
This commit is contained in:
parent
9b43a3a067
commit
777a2d94da
2 changed files with 23 additions and 32 deletions
|
@ -111,35 +111,6 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag,
|
|||
IN PDBGKD_DEBUG_DATA_HEADER64 DataHeader,
|
||||
IN ULONG Size);
|
||||
|
||||
CODE_SEG("INIT")
|
||||
VOID
|
||||
NTAPI
|
||||
KdpCallInitRoutine(ULONG BootPhase)
|
||||
{
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
PKD_DISPATCH_TABLE CurrentTable;
|
||||
|
||||
/* Call the registered handlers */
|
||||
CurrentEntry = KdProviders.Flink;
|
||||
while (CurrentEntry != &KdProviders)
|
||||
{
|
||||
/* Get the current table */
|
||||
CurrentTable = CONTAINING_RECORD(CurrentEntry,
|
||||
KD_DISPATCH_TABLE,
|
||||
KdProvidersList);
|
||||
|
||||
/* Call it */
|
||||
CurrentTable->KdpInitRoutine(CurrentTable, BootPhase);
|
||||
|
||||
/* Next Table */
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
}
|
||||
|
||||
/* Call the Wrapper Init Routine */
|
||||
if (WrapperInitRoutine)
|
||||
WrapperTable.KdpInitRoutine(&WrapperTable, BootPhase);
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
KdInitSystem(IN ULONG BootPhase,
|
||||
|
@ -155,8 +126,6 @@ KdInitSystem(IN ULONG BootPhase,
|
|||
/* Check if this is Phase 1 */
|
||||
if (BootPhase)
|
||||
{
|
||||
/* Call the Initialization Routines of the Registered Providers */
|
||||
KdpCallInitRoutine(BootPhase);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -581,7 +581,29 @@ NTAPI
|
|||
KdDebuggerInitialize1(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||
{
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
PKD_DISPATCH_TABLE CurrentTable;
|
||||
|
||||
/* Call the registered handlers */
|
||||
CurrentEntry = KdProviders.Flink;
|
||||
while (CurrentEntry != &KdProviders)
|
||||
{
|
||||
/* Get the current table */
|
||||
CurrentTable = CONTAINING_RECORD(CurrentEntry,
|
||||
KD_DISPATCH_TABLE,
|
||||
KdProvidersList);
|
||||
|
||||
/* Call it */
|
||||
CurrentTable->KdpInitRoutine(CurrentTable, 1);
|
||||
|
||||
/* Next Table */
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
}
|
||||
|
||||
/* Call the Wrapper Init Routine */
|
||||
if (WrapperInitRoutine)
|
||||
WrapperTable.KdpInitRoutine(&WrapperTable, 1);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue