mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:05:42 +00:00
[KD] [KD64] Introduce KdpPrintBanner and use it in all places where we print the (now consistent) banner instead of copying the code over and over again.
I still don't like that we're copying code between KD and KD64 instead of sharing it.
But as both modules are totally distinct at the moment, I won't be the one introducing shared functions between them.
This is a follow up to 50ae5e7c52
, which TortoiseGit accidentally turned into a "Message only" commit...
Never hit ALT+Y by mistake! ;)
This commit is contained in:
parent
50ae5e7c52
commit
a7d388c350
2 changed files with 32 additions and 35 deletions
|
@ -65,6 +65,22 @@ KdpGetMemorySizeInMBs(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
return NumberOfPhysicalPages * PAGE_SIZE / 1024 / 1024;
|
||||
}
|
||||
|
||||
/* See also: kd\kdio.c */
|
||||
static VOID
|
||||
INIT_FUNCTION
|
||||
KdpPrintBanner(IN SIZE_T MemSizeMBs)
|
||||
{
|
||||
DPRINT1("-----------------------------------------------------\n");
|
||||
DPRINT1("ReactOS " KERNEL_VERSION_STR " (Build " KERNEL_VERSION_BUILD_STR ") (Commit " KERNEL_VERSION_COMMIT_HASH ")\n");
|
||||
DPRINT1("%u System Processor [%u MB Memory]\n", KeNumberProcessors, MemSizeMBs);
|
||||
|
||||
if (KeLoaderBlock)
|
||||
{
|
||||
DPRINT1("Command Line: %s\n", KeLoaderBlock->LoadOptions);
|
||||
DPRINT1("ARC Paths: %s %s %s %s\n", KeLoaderBlock->ArcBootDeviceName, KeLoaderBlock->NtHalPathName, KeLoaderBlock->ArcHalDeviceName, KeLoaderBlock->NtBootPathName);
|
||||
}
|
||||
}
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
VOID
|
||||
|
@ -375,18 +391,8 @@ KdInitSystem(IN ULONG BootPhase,
|
|||
SharedUserData->KdDebuggerEnabled = TRUE;
|
||||
|
||||
/* Display separator + ReactOS version at start of the debug log */
|
||||
DPRINT1("-----------------------------------------------------\n");
|
||||
DPRINT1("ReactOS "KERNEL_VERSION_STR" (Build "KERNEL_VERSION_BUILD_STR")\n");
|
||||
MemSizeMBs = KdpGetMemorySizeInMBs(KeLoaderBlock);
|
||||
DPRINT1("%u System Processor [%u MB Memory]\n", KeNumberProcessors, MemSizeMBs);
|
||||
if (KeLoaderBlock)
|
||||
{
|
||||
DPRINT1("Command Line: %s\n", KeLoaderBlock->LoadOptions);
|
||||
DPRINT1("ARC Paths: %s %s %s %s\n", KeLoaderBlock->ArcBootDeviceName,
|
||||
KeLoaderBlock->NtHalPathName,
|
||||
KeLoaderBlock->ArcHalDeviceName,
|
||||
KeLoaderBlock->NtBootPathName);
|
||||
}
|
||||
KdpPrintBanner(MemSizeMBs);
|
||||
|
||||
/* Check if the debugger should be disabled initially */
|
||||
if (DisableKdAfterInit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue