summaryrefslogtreecommitdiff
path: root/cmd/efidebug.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-03-18 07:48:39 -0400
committerTom Rini <trini@konsulko.com>2020-03-18 07:48:39 -0400
commit40e82bb97c6c1d9dd335faf8539123ac6ace26c5 (patch)
treeacb3d298c833efeecff55d6c510137a897275c0d /cmd/efidebug.c
parent78176d408bf18de14988a781c59abe38ee350963 (diff)
parent74b44875357378c83e4bd150c0b759ca6ae6563a (diff)
Merge tag 'efi-2020-04-rc4-4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-04-rc4 (4) This series fixes several bugs: * consider the /reserved-memory node in the device tree * consider memory reservations created in ft_board_setup() * correct output of 'efidebug memmap' on the sandbox * correct the definition of efi_capsule_header() Furthermore some definitions needed for future patches are added to header files.
Diffstat (limited to 'cmd/efidebug.c')
-rw-r--r--cmd/efidebug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index 8c3681c37d9..bb7c13d6a1c 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -12,6 +12,7 @@
#include <exports.h>
#include <hexdump.h>
#include <malloc.h>
+#include <mapmem.h>
#include <search.h>
#include <linux/ctype.h>
@@ -488,9 +489,10 @@ static int do_efi_show_memmap(cmd_tbl_t *cmdtp, int flag,
printf("%-16s %.*llx-%.*llx", type,
EFI_PHYS_ADDR_WIDTH,
- map->physical_start,
+ (u64)map_to_sysmem((void *)map->physical_start),
EFI_PHYS_ADDR_WIDTH,
- map->physical_start + map->num_pages * EFI_PAGE_SIZE);
+ (u64)map_to_sysmem((void *)map->physical_start +
+ map->num_pages * EFI_PAGE_SIZE));
print_memory_attributes(map->attribute);
putc('\n');