aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2017-01-16 10:45:57 +0800
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-01-28 17:21:03 +0000
commit1a9df0572f3a7098e269e7644077d4a452123de6 (patch)
tree0211656e52f46ffddabc9de1662627f21a41581c
parente45705fe0fdd1f8d27db166e791309742eedc6a3 (diff)
downloadefi-1a9df0572f3a7098e269e7644077d4a452123de6.tar.gz
efi/x86: Add debug code to print cooked memmap
It is not obvious if the reserved boot area are added correctly, add a efi_print_memmap to print the new memmap. Signed-off-by: Dave Young <dyoung@redhat.com> Cc: Matt Fleming <matt@codeblueprint.co.uk> Reviewed-by: Nicolai Stange <nicstange@gmail.com> Tested-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r--arch/x86/platform/efi/efi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 0d4becfc5145d0..565dff3c9a12cf 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -955,6 +955,11 @@ static void __init __efi_enter_virtual_mode(void)
return;
}
+ if (efi_enabled(EFI_DBG)) {
+ pr_info("EFI runtime memory map:\n");
+ efi_print_memmap();
+ }
+
BUG_ON(!efi.systab);
if (efi_setup_page_tables(pa, 1 << pg_shift)) {