Skip to content
Commit eab31265 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi: libstub: simplify efi_get_memory_map() and struct efi_boot_memmap



Currently, struct efi_boot_memmap is a struct that is passed around
between callers of efi_get_memory_map() and the users of the resulting
data, and which carries pointers to various variables whose values are
provided by the EFI GetMemoryMap() boot service.

This is overly complex, and it is much easier to carry these values in
the struct itself. So turn the struct into one that carries these data
items directly, including a flex array for the variable number of EFI
memory descriptors that the boot service may return.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent f80d2604
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment