AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * EFI setup code |
| 4 | * |
| 5 | * Copyright (c) 2016-2018 Alexander Graf et al. |
| 6 | */ |
| 7 | |
Heinrich Schuchardt | a306a12 | 2021-06-29 13:33:09 +0200 | [diff] [blame] | 8 | #define LOG_CATEGORY LOGC_EFI |
| 9 | |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 10 | #include <common.h> |
| 11 | #include <efi_loader.h> |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 12 | #include <efi_variable.h> |
Heinrich Schuchardt | a306a12 | 2021-06-29 13:33:09 +0200 | [diff] [blame] | 13 | #include <log.h> |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 14 | |
| 15 | #define OBJ_LIST_NOT_INITIALIZED 1 |
| 16 | |
Heinrich Schuchardt | de9bdc6 | 2020-03-19 18:21:58 +0000 | [diff] [blame] | 17 | efi_status_t efi_obj_list_initialized = OBJ_LIST_NOT_INITIALIZED; |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 18 | |
Heinrich Schuchardt | aea03d6 | 2019-05-04 11:47:48 +0200 | [diff] [blame] | 19 | /* |
| 20 | * Allow unaligned memory access. |
| 21 | * |
| 22 | * This routine is overridden by architectures providing this feature. |
| 23 | */ |
| 24 | void __weak allow_unaligned(void) |
| 25 | { |
| 26 | } |
| 27 | |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 28 | /** |
| 29 | * efi_init_platform_lang() - define supported languages |
| 30 | * |
| 31 | * Set the PlatformLangCodes and PlatformLang variables. |
| 32 | * |
| 33 | * Return: status code |
| 34 | */ |
| 35 | static efi_status_t efi_init_platform_lang(void) |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 36 | { |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 37 | efi_status_t ret; |
| 38 | efi_uintn_t data_size = 0; |
| 39 | char *lang = CONFIG_EFI_PLATFORM_LANG_CODES; |
| 40 | char *pos; |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 41 | |
| 42 | /* |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 43 | * Variable PlatformLangCodes defines the language codes that the |
| 44 | * machine can support. |
Heinrich Schuchardt | f7fe45b | 2019-04-05 02:45:21 +0200 | [diff] [blame] | 45 | */ |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 46 | ret = efi_set_variable_int(u"PlatformLangCodes", |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 47 | &efi_global_variable_guid, |
| 48 | EFI_VARIABLE_BOOTSERVICE_ACCESS | |
| 49 | EFI_VARIABLE_RUNTIME_ACCESS | |
| 50 | EFI_VARIABLE_READ_ONLY, |
| 51 | sizeof(CONFIG_EFI_PLATFORM_LANG_CODES), |
| 52 | CONFIG_EFI_PLATFORM_LANG_CODES, false); |
Heinrich Schuchardt | f7fe45b | 2019-04-05 02:45:21 +0200 | [diff] [blame] | 53 | if (ret != EFI_SUCCESS) |
| 54 | goto out; |
| 55 | |
| 56 | /* |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 57 | * Variable PlatformLang defines the language that the machine has been |
| 58 | * configured for. |
Heinrich Schuchardt | f7fe45b | 2019-04-05 02:45:21 +0200 | [diff] [blame] | 59 | */ |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 60 | ret = efi_get_variable_int(u"PlatformLang", |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 61 | &efi_global_variable_guid, |
| 62 | NULL, &data_size, &pos, NULL); |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 63 | if (ret == EFI_BUFFER_TOO_SMALL) { |
| 64 | /* The variable is already set. Do not change it. */ |
| 65 | ret = EFI_SUCCESS; |
| 66 | goto out; |
| 67 | } |
| 68 | |
| 69 | /* |
| 70 | * The list of supported languages is semicolon separated. Use the first |
| 71 | * language to initialize PlatformLang. |
| 72 | */ |
| 73 | pos = strchr(lang, ';'); |
| 74 | if (pos) |
| 75 | *pos = 0; |
| 76 | |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 77 | ret = efi_set_variable_int(u"PlatformLang", |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 78 | &efi_global_variable_guid, |
| 79 | EFI_VARIABLE_NON_VOLATILE | |
| 80 | EFI_VARIABLE_BOOTSERVICE_ACCESS | |
| 81 | EFI_VARIABLE_RUNTIME_ACCESS, |
| 82 | 1 + strlen(lang), lang, false); |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 83 | out: |
Heinrich Schuchardt | f7fe45b | 2019-04-05 02:45:21 +0200 | [diff] [blame] | 84 | if (ret != EFI_SUCCESS) |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 85 | printf("EFI: cannot initialize platform language settings\n"); |
| 86 | return ret; |
| 87 | } |
| 88 | |
AKASHI Takahiro | 8d494f6 | 2020-04-14 11:51:45 +0900 | [diff] [blame] | 89 | #ifdef CONFIG_EFI_SECURE_BOOT |
| 90 | /** |
| 91 | * efi_init_secure_boot - initialize secure boot state |
| 92 | * |
Heinrich Schuchardt | e2c43da | 2020-05-03 16:29:00 +0200 | [diff] [blame] | 93 | * Return: status code |
AKASHI Takahiro | 8d494f6 | 2020-04-14 11:51:45 +0900 | [diff] [blame] | 94 | */ |
| 95 | static efi_status_t efi_init_secure_boot(void) |
| 96 | { |
| 97 | efi_guid_t signature_types[] = { |
| 98 | EFI_CERT_SHA256_GUID, |
| 99 | EFI_CERT_X509_GUID, |
| 100 | }; |
| 101 | efi_status_t ret; |
| 102 | |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 103 | ret = efi_set_variable_int(u"SignatureSupport", |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 104 | &efi_global_variable_guid, |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 105 | EFI_VARIABLE_READ_ONLY | |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 106 | EFI_VARIABLE_BOOTSERVICE_ACCESS | |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 107 | EFI_VARIABLE_RUNTIME_ACCESS, |
Heinrich Schuchardt | ee3565f | 2020-06-24 19:38:29 +0200 | [diff] [blame] | 108 | sizeof(signature_types), |
| 109 | &signature_types, false); |
AKASHI Takahiro | 8d494f6 | 2020-04-14 11:51:45 +0900 | [diff] [blame] | 110 | if (ret != EFI_SUCCESS) |
| 111 | printf("EFI: cannot initialize SignatureSupport variable\n"); |
| 112 | |
| 113 | return ret; |
| 114 | } |
| 115 | #else |
| 116 | static efi_status_t efi_init_secure_boot(void) |
| 117 | { |
| 118 | return EFI_SUCCESS; |
| 119 | } |
| 120 | #endif /* CONFIG_EFI_SECURE_BOOT */ |
| 121 | |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 122 | /** |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 123 | * efi_init_capsule - initialize capsule update state |
| 124 | * |
| 125 | * Return: status code |
| 126 | */ |
| 127 | static efi_status_t efi_init_capsule(void) |
| 128 | { |
| 129 | efi_status_t ret = EFI_SUCCESS; |
| 130 | |
| 131 | if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_UPDATE)) { |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 132 | ret = efi_set_variable_int(u"CapsuleMax", |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 133 | &efi_guid_capsule_report, |
| 134 | EFI_VARIABLE_READ_ONLY | |
| 135 | EFI_VARIABLE_BOOTSERVICE_ACCESS | |
| 136 | EFI_VARIABLE_RUNTIME_ACCESS, |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 137 | 22, u"CapsuleFFFF", false); |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 138 | if (ret != EFI_SUCCESS) |
| 139 | printf("EFI: cannot initialize CapsuleMax variable\n"); |
| 140 | } |
| 141 | |
| 142 | return ret; |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * efi_init_os_indications() - indicate supported features for OS requests |
| 147 | * |
| 148 | * Set the OsIndicationsSupported variable. |
| 149 | * |
| 150 | * Return: status code |
| 151 | */ |
| 152 | static efi_status_t efi_init_os_indications(void) |
| 153 | { |
| 154 | u64 os_indications_supported = 0; |
| 155 | |
| 156 | if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)) |
| 157 | os_indications_supported |= |
| 158 | EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED; |
| 159 | |
AKASHI Takahiro | 45b81954 | 2020-11-17 09:27:56 +0900 | [diff] [blame] | 160 | if (IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK)) |
| 161 | os_indications_supported |= |
| 162 | EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED; |
| 163 | |
AKASHI Takahiro | 0d96378 | 2020-11-30 18:12:11 +0900 | [diff] [blame] | 164 | if (IS_ENABLED(CONFIG_EFI_CAPSULE_FIRMWARE_MANAGEMENT)) |
| 165 | os_indications_supported |= |
| 166 | EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED; |
| 167 | |
Simon Glass | 9097537 | 2022-01-23 12:55:12 -0700 | [diff] [blame] | 168 | return efi_set_variable_int(u"OsIndicationsSupported", |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 169 | &efi_global_variable_guid, |
| 170 | EFI_VARIABLE_BOOTSERVICE_ACCESS | |
| 171 | EFI_VARIABLE_RUNTIME_ACCESS | |
| 172 | EFI_VARIABLE_READ_ONLY, |
| 173 | sizeof(os_indications_supported), |
| 174 | &os_indications_supported, false); |
| 175 | } |
| 176 | |
Heinrich Schuchardt | a306a12 | 2021-06-29 13:33:09 +0200 | [diff] [blame] | 177 | /** |
AKASHI Takahiro | a36dc25 | 2022-04-19 10:05:11 +0900 | [diff] [blame^] | 178 | * __efi_init_early() - handle initialization at early stage |
| 179 | * |
| 180 | * This function is called in efi_init_obj_list() only if |
| 181 | * !CONFIG_EFI_SETUP_EARLY. |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 182 | * |
| 183 | * Return: status code |
| 184 | */ |
AKASHI Takahiro | a36dc25 | 2022-04-19 10:05:11 +0900 | [diff] [blame^] | 185 | static efi_status_t __efi_init_early(void) |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 186 | { |
Heinrich Schuchardt | e9e8499 | 2021-11-20 11:53:12 +0100 | [diff] [blame] | 187 | efi_status_t ret = EFI_SUCCESS; |
Heinrich Schuchardt | f7fe45b | 2019-04-05 02:45:21 +0200 | [diff] [blame] | 188 | |
Heinrich Schuchardt | aea03d6 | 2019-05-04 11:47:48 +0200 | [diff] [blame] | 189 | /* Allow unaligned memory access */ |
| 190 | allow_unaligned(); |
| 191 | |
Heinrich Schuchardt | f667a18 | 2020-05-20 21:27:29 +0200 | [diff] [blame] | 192 | /* Initialize root node */ |
| 193 | ret = efi_root_node_register(); |
| 194 | if (ret != EFI_SUCCESS) |
| 195 | goto out; |
| 196 | |
AKASHI Takahiro | 9b31c63 | 2020-06-09 14:09:31 +0900 | [diff] [blame] | 197 | ret = efi_console_register(); |
| 198 | if (ret != EFI_SUCCESS) |
| 199 | goto out; |
| 200 | |
Heinrich Schuchardt | eef4eee | 2020-03-19 18:21:58 +0000 | [diff] [blame] | 201 | #ifdef CONFIG_PARTITIONS |
| 202 | ret = efi_disk_register(); |
Heinrich Schuchardt | eef4eee | 2020-03-19 18:21:58 +0000 | [diff] [blame] | 203 | #endif |
AKASHI Takahiro | a36dc25 | 2022-04-19 10:05:11 +0900 | [diff] [blame^] | 204 | out: |
| 205 | return ret; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * efi_init_early() - handle initialization at early stage |
| 210 | * |
| 211 | * external version of __efi_init_early(); expected to be called in |
| 212 | * board_init_r(). |
| 213 | * |
| 214 | * Return: status code |
| 215 | */ |
| 216 | int efi_init_early(void) |
| 217 | { |
| 218 | efi_status_t ret; |
| 219 | |
| 220 | ret = __efi_init_early(); |
| 221 | if (ret != EFI_SUCCESS) { |
| 222 | /* never re-init UEFI subsystem */ |
| 223 | efi_obj_list_initialized = ret; |
| 224 | return -1; |
| 225 | } |
| 226 | return 0; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * efi_init_obj_list() - Initialize and populate EFI object list |
| 231 | * |
| 232 | * Return: status code |
| 233 | */ |
| 234 | efi_status_t efi_init_obj_list(void) |
| 235 | { |
| 236 | efi_status_t ret = EFI_SUCCESS; |
| 237 | |
| 238 | /* Initialize once only */ |
| 239 | if (efi_obj_list_initialized != OBJ_LIST_NOT_INITIALIZED) |
| 240 | return efi_obj_list_initialized; |
| 241 | |
| 242 | if (!IS_ENABLED(CONFIG_EFI_SETUP_EARLY)) { |
| 243 | ret = __efi_init_early(); |
| 244 | if (ret != EFI_SUCCESS) |
| 245 | goto out; |
| 246 | } |
| 247 | |
Heinrich Schuchardt | c63f68f | 2020-09-25 12:50:19 +0200 | [diff] [blame] | 248 | if (IS_ENABLED(CONFIG_EFI_RNG_PROTOCOL)) { |
| 249 | ret = efi_rng_register(); |
| 250 | if (ret != EFI_SUCCESS) |
| 251 | goto out; |
| 252 | } |
Ilias Apalodimas | 590fef6 | 2020-11-11 11:18:11 +0200 | [diff] [blame] | 253 | |
Heinrich Schuchardt | cf3b118 | 2019-06-20 13:52:16 +0200 | [diff] [blame] | 254 | /* Initialize variable services */ |
| 255 | ret = efi_init_variables(); |
| 256 | if (ret != EFI_SUCCESS) |
| 257 | goto out; |
| 258 | |
Heinrich Schuchardt | 3700d57 | 2019-04-11 07:34:24 +0200 | [diff] [blame] | 259 | /* Define supported languages */ |
| 260 | ret = efi_init_platform_lang(); |
| 261 | if (ret != EFI_SUCCESS) |
| 262 | goto out; |
| 263 | |
AKASHI Takahiro | 3a48925 | 2019-04-24 15:30:38 +0900 | [diff] [blame] | 264 | /* Indicate supported features */ |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 265 | ret = efi_init_os_indications(); |
AKASHI Takahiro | 3a48925 | 2019-04-24 15:30:38 +0900 | [diff] [blame] | 266 | if (ret != EFI_SUCCESS) |
| 267 | goto out; |
| 268 | |
Heinrich Schuchardt | 956eff3 | 2020-02-19 20:48:49 +0100 | [diff] [blame] | 269 | /* Initialize system table */ |
| 270 | ret = efi_initialize_system_table(); |
AKASHI Takahiro | 3240184 | 2019-06-05 13:21:38 +0900 | [diff] [blame] | 271 | if (ret != EFI_SUCCESS) |
| 272 | goto out; |
| 273 | |
Jose Marinho | ebb61ee | 2021-03-02 17:26:38 +0000 | [diff] [blame] | 274 | if (IS_ENABLED(CONFIG_EFI_ESRT)) { |
| 275 | ret = efi_esrt_register(); |
| 276 | if (ret != EFI_SUCCESS) |
| 277 | goto out; |
| 278 | } |
| 279 | |
Ilias Apalodimas | 967650d | 2020-11-30 11:47:40 +0200 | [diff] [blame] | 280 | if (IS_ENABLED(CONFIG_EFI_TCG2_PROTOCOL)) { |
| 281 | ret = efi_tcg2_register(); |
| 282 | if (ret != EFI_SUCCESS) |
| 283 | goto out; |
Masahisa Kojima | 0fd4379 | 2021-12-07 14:15:31 +0900 | [diff] [blame] | 284 | |
| 285 | ret = efi_tcg2_do_initial_measurement(); |
| 286 | if (ret == EFI_SECURITY_VIOLATION) |
| 287 | goto out; |
Ilias Apalodimas | 967650d | 2020-11-30 11:47:40 +0200 | [diff] [blame] | 288 | } |
| 289 | |
Sunil V L | 279d1c8 | 2022-01-28 20:48:44 +0530 | [diff] [blame] | 290 | if (IS_ENABLED(CONFIG_EFI_RISCV_BOOT_PROTOCOL)) { |
| 291 | ret = efi_riscv_register(); |
| 292 | if (ret != EFI_SUCCESS) |
| 293 | goto out; |
| 294 | } |
| 295 | |
AKASHI Takahiro | 8d494f6 | 2020-04-14 11:51:45 +0900 | [diff] [blame] | 296 | /* Secure boot */ |
| 297 | ret = efi_init_secure_boot(); |
| 298 | if (ret != EFI_SUCCESS) |
| 299 | goto out; |
| 300 | |
Heinrich Schuchardt | 956eff3 | 2020-02-19 20:48:49 +0100 | [diff] [blame] | 301 | /* Indicate supported runtime services */ |
| 302 | ret = efi_init_runtime_supported(); |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 303 | if (ret != EFI_SUCCESS) |
| 304 | goto out; |
| 305 | |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 306 | /* Initialize EFI driver uclass */ |
| 307 | ret = efi_driver_init(); |
| 308 | if (ret != EFI_SUCCESS) |
| 309 | goto out; |
| 310 | |
Ilias Apalodimas | fac773e | 2021-06-22 17:38:53 +0300 | [diff] [blame] | 311 | if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)) { |
| 312 | ret = efi_load_capsule_drivers(); |
| 313 | if (ret != EFI_SUCCESS) |
| 314 | goto out; |
| 315 | } |
| 316 | |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 317 | #if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO) |
| 318 | ret = efi_gop_register(); |
| 319 | if (ret != EFI_SUCCESS) |
| 320 | goto out; |
| 321 | #endif |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 322 | #ifdef CONFIG_NET |
| 323 | ret = efi_net_register(); |
| 324 | if (ret != EFI_SUCCESS) |
| 325 | goto out; |
| 326 | #endif |
| 327 | #ifdef CONFIG_GENERATE_ACPI_TABLE |
| 328 | ret = efi_acpi_register(); |
| 329 | if (ret != EFI_SUCCESS) |
| 330 | goto out; |
| 331 | #endif |
| 332 | #ifdef CONFIG_GENERATE_SMBIOS_TABLE |
| 333 | ret = efi_smbios_register(); |
| 334 | if (ret != EFI_SUCCESS) |
| 335 | goto out; |
| 336 | #endif |
| 337 | ret = efi_watchdog_register(); |
| 338 | if (ret != EFI_SUCCESS) |
| 339 | goto out; |
| 340 | |
AKASHI Takahiro | 473d9b3 | 2020-11-17 09:27:55 +0900 | [diff] [blame] | 341 | ret = efi_init_capsule(); |
| 342 | if (ret != EFI_SUCCESS) |
| 343 | goto out; |
| 344 | |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 345 | /* Initialize EFI runtime services */ |
| 346 | ret = efi_reset_system_init(); |
| 347 | if (ret != EFI_SUCCESS) |
| 348 | goto out; |
| 349 | |
AKASHI Takahiro | 45b81954 | 2020-11-17 09:27:56 +0900 | [diff] [blame] | 350 | /* Execute capsules after reboot */ |
| 351 | if (IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK) && |
| 352 | !IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK_EARLY)) |
| 353 | ret = efi_launch_capsules(); |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 354 | out: |
AKASHI Takahiro | 7e0badb | 2018-12-30 15:16:55 +0100 | [diff] [blame] | 355 | efi_obj_list_initialized = ret; |
| 356 | return ret; |
| 357 | } |