• Ard Biesheuvel's avatar
    efi: libstub: simplify efi_get_memory_map() and struct efi_boot_memmap · eab31265
    Ard Biesheuvel authored
    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>
    eab31265
relocate.c 4.72 KB