x86: efi: Update efi_get_next_mem_desc() to avoid needing a map
At present this function requires a pointer to struct efi_entry_memmap but the only field used in there is the desc_size. We want to be able to use it from the app, so update it to use desc_size directly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
866e2ac5aa
commit
ce1dc0cc17
@@ -395,9 +395,9 @@ struct efi_entry_systable {
|
||||
};
|
||||
|
||||
static inline struct efi_mem_desc *efi_get_next_mem_desc(
|
||||
struct efi_entry_memmap *map, struct efi_mem_desc *desc)
|
||||
struct efi_mem_desc *desc, int desc_size)
|
||||
{
|
||||
return (struct efi_mem_desc *)((ulong)desc + map->desc_size);
|
||||
return (struct efi_mem_desc *)((ulong)desc + desc_size);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user