efi: Add a command to display the memory map
authorSimon Glass <sjg@chromium.org>
Tue, 4 Aug 2015 18:33:59 +0000 (12:33 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:44:07 +0000 (08:44 -0600)
commitf1a0bafb5802416d42d685b343110c1557da1739
treefb2d3289ce61f9cfc8651fdc9547feb9c2f49410
parent16c220d0a79feed0326c29d64e4bb482e80276d4
efi: Add a command to display the memory map

The EFI memory map is passed from the stub to U-Boot in a table. Add a
command to display it in a vaguely readable fashion.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested on QEMU
Tested-by: Bin Meng <bmeng.cn@gmail.com>
common/Makefile
common/cmd_efi.c [new file with mode: 0644]