{NULL_GUID, NULL, NULL},
};
-static void *efi_runtime_map;
-static int nr_efi_runtime_map;
u64 efi_setup; /* efi setup_data physical address */
-u32 efi_data_len; /* efi setup_data payload length */
/*
* Returns 1 if 'facility' is enabled, 0 otherwise.
return ret;
}
-static void get_nr_runtime_map(void)
-{
- if (!efi_setup)
- return;
-
- nr_efi_runtime_map = (efi_data_len - sizeof(struct efi_setup_data)) /
- sizeof(efi_memory_desc_t);
-}
-
void __init efi_init(void)
{
efi_char16_t *c16;
int i = 0;
void *tmp;
- get_nr_runtime_map();
#ifdef CONFIG_X86_32
if (boot_params.efi_info.efi_systab_hi ||
boot_params.efi_info.efi_memmap_hi) {
count++;
}
- efi_runtime_map = q;
- nr_efi_runtime_map = count;
- efi_runtime_map_setup(efi_runtime_map, nr_efi_runtime_map,
- boot_params.efi_info.efi_memdesc_size);
+ efi_runtime_map_setup(q, count, memmap.desc_size);
return 0;
out:
void __init parse_efi_setup(u64 phys_addr, u32 data_len)
{
efi_setup = phys_addr + sizeof(struct setup_data);
- efi_data_len = data_len - sizeof(struct setup_data);
}