Refactor, part 7; register XTLDR protocol
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 32s
Builds / ExectOS (i686) (push) Successful in 28s

This commit is contained in:
2023-12-05 22:18:25 +01:00
parent c4f1429a3b
commit 6733146b71
5 changed files with 31 additions and 24 deletions

View File

@@ -29,12 +29,16 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
{
EFI_STATUS Status;
/* Set the system table and image handle */
EfiImageHandle = ImageHandle;
EfiSystemTable = SystemTable;
/* Initialize XTLDR and early print XTLDR version */
BlpInitializeEfiBootLoader();
BlConsolePrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
/* Parse configuration options passed from UEFI shell */
BlpConfigParseCommandLine();
BlpParseCommandLineOptions();
/* Attempt to early initialize debug console */
if(DEBUG)
@@ -56,6 +60,14 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlDebugPrint(L"WARNING: Failed to disable watchdog timer\n");
}
/* Register loader protocol */
Status = BlpRegisterXtLoaderProtocol();
if(Status != STATUS_EFI_SUCCESS)
{
/* Failed to register loader protocol */
BlDebugPrint(L"ERROR: Failed to register XTLDR loader protocol\n");
}
/* Temporary infinite loop */
for(;;);