diff options
author | Tom Rini <trini@konsulko.com> | 2019-02-13 07:12:29 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-13 07:12:29 -0500 |
commit | 63f7e3fca391a50a499fed828fe16325fdee45f3 (patch) | |
tree | 6214d5fe9a24d21b9a729a1bda3fdd22e442d298 /lib/efi_loader/efi_memory.c | |
parent | b1b1bab7f92b838a252ab977f56d9c3584c14fb7 (diff) | |
parent | 823c233b7ab95169ea4428b2821b72b8887b47b0 (diff) |
Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot
Patch queue for efi - 2019-02-13
Goodness this time around:
- HII protocol, finally allows us to run the UEFI Shell!
(experimantal, disabled by default)
- efi selftest now available on Cortex-M
- NVMe support for distro boot
- Lots of code cleanup
Diffstat (limited to 'lib/efi_loader/efi_memory.c')
-rw-r--r-- | lib/efi_loader/efi_memory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 4bb517473e..ebd2b36c03 100644 --- a/lib/efi_loader/efi_memory.c +++ b/lib/efi_loader/efi_memory.c @@ -554,6 +554,12 @@ __weak void efi_add_known_memory(void) u64 ram_top = board_get_usable_ram_top(0) & ~EFI_PAGE_MASK; int i; + /* + * ram_top is just outside mapped memory. So use an offset of one for + * mapping the sandbox address. + */ + ram_top = (uintptr_t)map_sysmem(ram_top - 1, 0) + 1; + /* Fix for 32bit targets with ram_top at 4G */ if (!ram_top) ram_top = 0x100000000ULL; |