]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: don't use HandleProtocol
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 24 Jan 2023 19:36:45 +0000 (20:36 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 27 Jan 2023 17:32:00 +0000 (18:32 +0100)
commit15436faa46a9958b019aea22d24bc52eb1da15ff
tree9b328ecfe34acbe6036c619a2ea5e2d9885f137a
parent23aa0502a4b9a60156809cd27baf7e9016d1be56
efi_loader: don't use HandleProtocol

HandleProtocol() is deprecrated. According to the UEFI specification it
should be implemented as a call to  OpenProtocolInterface() with a hard
coded agent handle. This implies that we would have to call
CloseProtocolInterfaces() after usage with the same handle.

Getting rid of an EFI_CALL() is also appreciated.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_boottime.c