diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-19 18:21:58 +0000 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-04 12:26:12 +0200 |
commit | 16ad946f41d3dc3e475d8313f4acbba0df527a2a (patch) | |
tree | adc99946b54f3763cc4e433570f634ed2e23cfe0 /lib | |
parent | 5827c2545849441dd60467565aac11964259972f (diff) | |
download | u-boot-16ad946f41d3dc3e475d8313f4acbba0df527a2a.tar.gz u-boot-16ad946f41d3dc3e475d8313f4acbba0df527a2a.tar.bz2 u-boot-16ad946f41d3dc3e475d8313f4acbba0df527a2a.zip |
efi_loader: change setup sequence
If we want to restore variables from disk, we need to initialize block
devices before variables.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_setup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 65739aca49..26a7423203 100644 --- a/lib/efi_loader/efi_setup.c +++ b/lib/efi_loader/efi_setup.c @@ -135,6 +135,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(); +#ifdef CONFIG_PARTITIONS + ret = efi_disk_register(); + if (ret != EFI_SUCCESS) + goto out; +#endif /* Initialize variable services */ ret = efi_init_variables(); if (ret != EFI_SUCCESS) @@ -183,11 +188,6 @@ efi_status_t efi_init_obj_list(void) ret = efi_console_register(); if (ret != EFI_SUCCESS) goto out; -#ifdef CONFIG_PARTITIONS - ret = efi_disk_register(); - if (ret != EFI_SUCCESS) - goto out; -#endif #if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO) ret = efi_gop_register(); if (ret != EFI_SUCCESS) |