[U-Boot] [PATCH v2 08/11] efi_loader: load saved non-volatile variables at init
AKASHI Takahiro
takahiro.akashi at linaro.org
Wed Apr 24 06:30:42 UTC 2019
Data cache will be read in from persistent storage after (re)boot
to restore UEFI non-volatile variables.
Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
lib/efi_loader/efi_setup.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c
index 05d8d754f4c7..490e3c5eb81a 100644
--- a/lib/efi_loader/efi_setup.c
+++ b/lib/efi_loader/efi_setup.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <efi_loader.h>
+#include <environment.h>
#if 1 /* TEMPORARILY */
#define DXE_SERVICES_TABLE_GUID \
@@ -96,6 +97,9 @@ efi_status_t efi_init_obj_list(void)
if (efi_obj_list_initialized != OBJ_LIST_NOT_INITIALIZED)
return efi_obj_list_initialized;
+ /* Load non-volatile variables */
+ env_efi_load();
+
/* Define supported languages */
ret = efi_init_platform_lang();
if (ret != EFI_SUCCESS)
--
2.20.1
More information about the U-Boot
mailing list