[PATCH v2 21/28] efi_loader: Use addresses in efi_reserve_memory()
Simon Glass
sjg at chromium.org
Thu Nov 28 16:47:20 CET 2024
Adjust this function to use addresses rather than pointers, so that it
doesn't have to use mapmem.
This is fix#2/4 for: Update efi_add_memory_map() to use address
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
lib/efi_loader/efi_dt_fixup.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lib/efi_loader/efi_dt_fixup.c b/lib/efi_loader/efi_dt_fixup.c
index 0dac94b0c6c..72d5d432a42 100644
--- a/lib/efi_loader/efi_dt_fixup.c
+++ b/lib/efi_loader/efi_dt_fixup.c
@@ -9,7 +9,6 @@
#include <efi_loader.h>
#include <efi_rng.h>
#include <fdtdec.h>
-#include <mapmem.h>
const efi_guid_t efi_guid_dt_fixup_protocol = EFI_DT_FIXUP_PROTOCOL_GUID;
@@ -26,9 +25,6 @@ static void efi_reserve_memory(u64 addr, u64 size, bool nomap)
int type;
efi_uintn_t ret;
- /* Convert from sandbox address space. */
- addr = (uintptr_t)map_sysmem(addr, 0);
-
if (nomap)
type = EFI_RESERVED_MEMORY_TYPE;
else
--
2.34.1
More information about the U-Boot
mailing list