]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: initialization of variable services
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 20 Jun 2019 11:52:16 +0000 (13:52 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 6 Jul 2019 19:25:32 +0000 (21:25 +0200)
Provide an initialization routine for variable services.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_setup.c
lib/efi_loader/efi_variable.c

index de1e67fd40ef717b8b84c45c0fb28fec8143324c..d30c4e8ef31678bba7283a897f363dc51fa7c150 100644 (file)
@@ -325,6 +325,8 @@ extern struct list_head efi_register_notify_events;
 
 /* Initialize efi execution environment */
 efi_status_t efi_init_obj_list(void);
+/* Initialize variable services */
+efi_status_t efi_init_variables(void);
 /* Called by bootefi to initialize root node */
 efi_status_t efi_root_node_register(void);
 /* Called by bootefi to initialize runtime */
index bfb57836fa9fa22f8183c5330570288abad239f7..de7b616c6daa75ae2d67b5026c19201e4fb42f08 100644 (file)
@@ -102,6 +102,11 @@ efi_status_t efi_init_obj_list(void)
        /* On ARM switch from EL3 or secure mode to EL2 or non-secure mode */
        switch_to_non_secure_mode();
 
+       /* Initialize variable services */
+       ret = efi_init_variables();
+       if (ret != EFI_SUCCESS)
+               goto out;
+
        /* Define supported languages */
        ret = efi_init_platform_lang();
        if (ret != EFI_SUCCESS)
index f71dc29ee9022d8cb2782146ded41936dcfdc7f6..6210425f5e2c9ea0c85d3011cf99c9f5a1ceb9ef 100644 (file)
@@ -547,3 +547,13 @@ efi_status_t __efi_runtime EFIAPI efi_query_variable_info(
 {
        return EFI_UNSUPPORTED;
 }
+
+/**
+ * efi_init_variables() - initialize variable services
+ *
+ * Return:     status code
+ */
+efi_status_t efi_init_variables(void)
+{
+       return EFI_SUCCESS;
+}