Skip to contentSkip to conversation

efi_loader: efi_var_mem_notify_exit_boot_services

PATCH New Heinrich Schuchardt 2 participants 2 messages Sep 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi_loader: efi_var_mem_notify_exit_boot_services

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")
---
 lib/efi_loader/efi_var_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/efi_loader/efi_var_mem.c +1 -1
index 8f4a5a5e47..1d2b44580f 100644
@@ -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);

--
2.20.1

#1 lore raw

PATCH 1/1 efi_loader: efi_var_mem_notify_exit_boot_services

Quoted 28 lines · Heinrich Schuchardt

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")
---
 lib/efi_loader/efi_var_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/efi_loader/efi_var_mem.c +1 -2
index 8f4a5a5e47..1d2b44580f 100644
@@ -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);
--
Quoted 2 lines

2.20.1