Allow BlGetXtLoaderProtocol() routine to store loader protocol in a specified variable
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-10-18 15:44:21 +02:00
parent 96a848b498
commit f8a120a24c
3 changed files with 13 additions and 7 deletions

View File

@@ -36,14 +36,20 @@ EFI_STATUS
BlXtLoaderModuleMain(EFI_HANDLE ImageHandle,
PEFI_SYSTEM_TABLE SystemTable)
{
EFI_STATUS Status;
/* Set the system table and image handle */
EfiImageHandle = ImageHandle;
EfiSystemTable = SystemTable;
/* Open the XTLDR protocol */
BlGetXtLoaderProtocol();
Status = BlGetXtLoaderProtocol(&EfiXtLdrProtocol);
if(Status != STATUS_EFI_SUCCESS)
{
/* Failed to open loader protocol */
return STATUS_EFI_PROTOCOL_ERROR;
}
/* Print message and return success */
EfiXtLdrProtocol->EfiPrint(L"XTLDR dummy module initialized\n");
/* Return success */
return STATUS_EFI_SUCCESS;
}