Basic steps in XTOS boot protocol

This commit is contained in:
2022-12-14 22:17:17 +01:00
parent 8b9c6780d5
commit 6871291c9a
2 changed files with 92 additions and 3 deletions

View File

@@ -18,8 +18,14 @@
*/
XTAPI
VOID
KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK LoaderBlock)
KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
{
/* Use XTLDR provided DbgPrint() routine for early printing to serial console */
VOID (*DbgPrint)(IN PWCHAR Format, IN ...) = Parameters->LoaderInformation.DbgPrint;
/* Print some message to serial console */
DbgPrint(L"Hello world from ExectOS kernel!\n");
/* Enter infinite kernel thread loop */
for(;;);
}