Use more generic name for this macro use pointer used behind it will point to kernel debugger after it gets initialized

This commit is contained in:
2023-02-07 19:37:44 +01:00
parent 67768ae7a3
commit 75c519a70c
8 changed files with 62 additions and 62 deletions

View File

@@ -36,7 +36,7 @@ XTAPI
VOID
KepStartKernel(VOID)
{
LdrPrint(L"Hello from new kernel stack!\n");
DebugPrint(L"Hello from new kernel stack!\n");
for(;;);
}

View File

@@ -12,8 +12,8 @@
/* FrameBuffer information */
HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
/* Pointer to boot loader provided DbgPrint() routine */
VOID (*KeDbgPrint)(IN PWCHAR Format, IN ...) = NULL;
/* Kernel initialization block passed by boot loader */
PKERNEL_INITIALIZATION_BLOCK KeInitializationBlock;
/* Pointer to boot loader provided DbgPrint() routine */
VOID (*LdrDbgPrint)(IN PWCHAR Format, IN ...) = NULL;

View File

@@ -36,7 +36,7 @@ XTAPI
VOID
KepStartKernel(VOID)
{
LdrPrint(L"Hello from new kernel stack!\n");
DebugPrint(L"Hello from new kernel stack!\n");
for(;;);
}

View File

@@ -27,13 +27,13 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
if(DEBUG && Parameters->LoaderInformation.DbgPrint)
{
/* Use loader's provided DbgPrint() routine for early printing to serial console */
LdrDbgPrint = Parameters->LoaderInformation.DbgPrint;
KeDbgPrint = Parameters->LoaderInformation.DbgPrint;
}
/* Print some message to serial console and test kernel parameters */
LdrPrint(L"Hello world from ExectOS kernel!\n");
LdrPrint(L"\n\n------ Kernel parameters block ------\n"
DebugPrint(L"Hello world from ExectOS kernel!\n");
DebugPrint(L"\n\n------ Kernel parameters block ------\n"
L"Loader block size: %lu\n"
L"Loader block version: %lu\n"
L"EFI Revision: %lu\n",