Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570735
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 09/10] efi/x86: Add debug code to print cooked memmap |
| Date | 2017-01-31 14:30 +0100 |
| Message-ID | <t5GFr-1cI-13@gated-at.bofh.it> (permalink) |
| References | <t5GFr-1cI-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Dave Young <dyoung@redhat.com>
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>
---
arch/x86/platform/efi/efi.c | 5 +++++
1 file changed, 5 insertions(+)
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)) {
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 09/10] efi/x86: Add debug code to print cooked memmap Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-01-31 14:30 +0100 [tip:efi/core] efi/x86: Add debug code to print cooked memmap tip-bot for Dave Young <tipbot@zytor.com> - 2017-02-01 10:50 +0100
csiph-web