]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: use event callback for initrd deregistration
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Mon, 4 Dec 2023 04:30:14 +0000 (13:30 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 20 Apr 2024 06:21:59 +0000 (08:21 +0200)
commit05bf7adf87b02feb593fb553e377cd196a4598f0
tree5de20ee2d086abaa3160dbb808e63119b6688e1d
parent2608015921f61425f09e3a413f22be6c155a13a7
efi_loader: use event callback for initrd deregistration

Currently efi_initrd_deregister() is called in bootefi.c
when the image started from bootefi command returns.
Since efi_guid_event_group_return_to_efibootmgr event is
implemented, so let's use this event for invoking
initrd deregistration.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_helper.c
lib/efi_loader/efi_load_initrd.c