exectos/xtoskrnl/ke/krnlinit.c
belliash df8de3f85f
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add missing routines documentation
2022-12-22 23:41:19 +01:00

47 lines
1.4 KiB
C

/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/ke/krnlinit.c
* DESCRIPTION: XT kernel initialization
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtkmapi.h>
/**
* This routine starts up the XT kernel. It is called by boot loader.
*
* @param Parameters
* Supplies a pointer to memory area containing parameters passed to kernel by bootloader.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
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");
/* Test kernel parameters */
DbgPrint(L"\n\n------ Kernel parameters block ------\n"
L"Loader block size: %lu\n"
L"Loader block version: %lu\n"
L"EFI Revision: %lu\n"
L"EFI RunTime Revision: %lu\n",
Parameters->Size,
Parameters->Version,
Parameters->FirmwareInformation.EfiFirmware.EfiVersion,
((PEFI_RUNTIME_SERVICES) Parameters->FirmwareInformation.EfiFirmware.EfiRuntimeServices)->Hdr.Revision
);
/* Enter infinite kernel thread loop */
for(;;);
}