diff options
Diffstat (limited to 'kjarna/efi/protocol.c')
| -rw-r--r-- | kjarna/efi/protocol.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kjarna/efi/protocol.c b/kjarna/efi/protocol.c index e4be9cd..6bf8123 100644 --- a/kjarna/efi/protocol.c +++ b/kjarna/efi/protocol.c @@ -22,3 +22,12 @@ void *efi_get_protocol(EFI_HANDLE handle, EFI_GUID *guid) return protocol; } +void efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid) +{ + efi_errno = gBS->CloseProtocol( + handle, + guid, + efi_context->handle, + nullptr); +} + |
