diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-04 03:51:11 -0700 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-15 10:57:22 +0100 |
commit | ce1dc0cc17e94a0bf1c17bd1465cb0afd5bfb214 (patch) | |
tree | 037a55ab097ec6cb8d8bc4480337620ba1d2c8bf /include | |
parent | 866e2ac5aa4b8a36db5bb4afd8b4e8302029849a (diff) | |
download | u-boot-ce1dc0cc17e94a0bf1c17bd1465cb0afd5bfb214.zip u-boot-ce1dc0cc17e94a0bf1c17bd1465cb0afd5bfb214.tar.gz u-boot-ce1dc0cc17e94a0bf1c17bd1465cb0afd5bfb214.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/efi.h b/include/efi.h index dc9907f..3508ff8 100644 --- a/include/efi.h +++ b/include/efi.h @@ -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); } /** |