loader.efi: efilib.h and libefi.c were left out of 350654

And this is second followup for 350654
This commit is contained in:
tsoome 2019-08-06 20:13:28 +00:00
parent 135e17991c
commit 26f3f2dab8
2 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,7 @@ pdinfo_t *efiblk_get_pdinfo_by_handle(EFI_HANDLE h);
pdinfo_t *efiblk_get_pdinfo_by_device_path(EFI_DEVICE_PATH *path);
void *efi_get_table(EFI_GUID *tbl);
EFI_STATUS OpenProtocolByHandle(EFI_HANDLE, EFI_GUID *, void **);
int efi_getdev(void **vdev, const char *devspec, const char **path);
char *efi_fmtdev(void *vdev);

View File

@ -50,3 +50,10 @@ efi_get_table(EFI_GUID *tbl)
}
return (NULL);
}
EFI_STATUS
OpenProtocolByHandle(EFI_HANDLE handle, EFI_GUID *protocol, void **interface)
{
return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL));
}