This issue can be seen on 32bit operation when one of E820_RAM type entries is greater than 4GB memory space.
The efi_alloc() finds a free memory in the conventional memory which is greater than 4GB. But, it does type cast to 32bit address space and eventually returns invalid address. Changes in v3: * Split a single commit to two relevant commits Changes in v2: * Add efi_add_conventional_memory_map() for common code re-use Aiden Park (2): efi_loader: Extract adding a conventional memory in separate routine x86: efi_loader: Use efi_add_conventional_memory_map() arch/x86/lib/e820.c | 17 ++++++-- include/efi_loader.h | 4 ++ lib/efi_loader/efi_memory.c | 82 ++++++++++++++++++++++--------------- 3 files changed, 68 insertions(+), 35 deletions(-) -- 2.20.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot