1
0
forkattu lähteestä xt-sys/exectos

Allow BlGetXtLoaderProtocol() routine to store loader protocol in a specified variable

This commit is contained in:
2022-10-18 15:44:21 +02:00
vanhempi 96a848b498
commit f8a120a24c
3 muutettua tiedostoa jossa 13 lisäystä ja 7 poistoa

Näytä tiedosto

@@ -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;
}