aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2017-01-31 08:21:41 -0500
committerIngo Molnar <mingo@kernel.org>2017-02-01 02:45:46 -0500
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 <nicstange@gmail.com> Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Nicolai Stange <nicstange@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1485868902-20401-10-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.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 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)
955 return; 955 return;
956 } 956 }
957 957
958 if (efi_enabled(EFI_DBG)) {
959 pr_info("EFI runtime memory map:\n");
960 efi_print_memmap();
961 }
962
958 BUG_ON(!efi.systab); 963 BUG_ON(!efi.systab);
959 964
960 if (efi_setup_page_tables(pa, 1 << pg_shift)) { 965 if (efi_setup_page_tables(pa, 1 << pg_shift)) {