Refactor, part 7; register XTLDR protocol
This commit is contained in:
@@ -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(;;);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user