|
@@ -167,6 +167,9 @@ setup_efi_state(struct boot_params *params, unsigned long params_load_addr,
|
|
|
struct efi_info *current_ei = &boot_params.efi_info;
|
|
struct efi_info *current_ei = &boot_params.efi_info;
|
|
|
struct efi_info *ei = ¶ms->efi_info;
|
|
struct efi_info *ei = ¶ms->efi_info;
|
|
|
|
|
|
|
|
|
|
+ if (!efi_enabled(EFI_RUNTIME_SERVICES))
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
if (!current_ei->efi_memmap_size)
|
|
if (!current_ei->efi_memmap_size)
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|