Use more generic name for this macro use pointer used behind it will point to kernel debugger after it gets initialized
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
@@ -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(;;);
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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(;;);
|
||||
}
|
||||
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user