]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: efi_var_mem_notify_exit_boot_services
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 8 Sep 2020 10:51:27 +0000 (10:51 +0000)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 14 Sep 2020 21:28:52 +0000 (23:28 +0200)
efi_var_mem_notify_exit_boot_services() is invoked when ExitBootServices()
is called by the UEFI payload.

efi_var_mem_notify_exit_boot_services() should not be defined as
__efi_runtime as it is invoking EFI_ENTRY() and EFI_EXIT() which themselves
are not __efi_runtime.

Fixes: f1f990a8c958 ("efi_loader: memory buffer for variables")
Fixes: e01aed47d6a0 ("efi_loader: Enable run-time variable support for tee based variables")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_var_mem.c

index 8f4a5a5e4709720780f3621b97117a80b698b7dc..1d2b44580f242e2c39dbcb23c4faa55d2f9e2a47 100644 (file)
@@ -211,7 +211,7 @@ static void efi_var_mem_bs_del(void)
  * @event:     callback event
  * @context:   callback context
  */
-static void EFIAPI __efi_runtime
+static void EFIAPI
 efi_var_mem_notify_exit_boot_services(struct efi_event *event, void *context)
 {
        EFI_ENTRY("%p, %p", event, context);