mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
cmd: map addresses to sysmem in efidebug memmap
Addresses in the sandbox's device tree are in the sandbox's virtual address space. If we want to compare memory reservations in the device-tree with the output of 'efidebug memmap', we need to convert back to this address space. Adjust the output of the 'efidebug memmap' command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
fef907b2e4
commit
a415d61eac
1 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue