aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Young <[email protected]>2017-01-31 13:21:41 +0000
committerIngo Molnar <[email protected]>2017-02-01 08:45:46 +0100
commit22c091d02a5422d2825a4fb1af71e5a62f9e4d0f (patch)
treeb1c03c7746fb15dd04a527ffdb135cd62614092c
parent7b0a911478c74ca02581d496f732c10e811e894f (diff)
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() call to print the new memmap. Tested-by: Nicolai Stange <[email protected]> Signed-off-by: Dave Young <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Reviewed-by: Nicolai Stange <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Matt Fleming <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-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 0d4becfc5145..565dff3c9a12 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)) {