linux/arch/x86/platform/efi
Matt Fleming ab72a27da4 x86/efi: Consolidate region mapping logic
EFI regions are currently mapped in two separate places. The bulk of
the work is done in efi_map_regions() but when CONFIG_EFI_MIXED is
enabled the additional regions that are required when operating in
mixed mode are mapping in efi_setup_page_tables().

Pull everything into efi_map_regions() and refactor the test for
which regions should be mapped into a should_map_region() function.
Generously sprinkle comments to clarify the different cases.

Acked-by: Borislav Petkov <bp@suse.de>
Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
2016-09-09 16:06:37 +01:00
..
early_printk.c treewide: replace obsolete _refok by __ref 2016-08-02 17:31:41 -04:00
efi-bgrt.c x86/efi-bgrt: Switch all pr_err() to pr_notice() for invalid BGRT 2016-05-04 08:36:44 +02:00
efi.c x86/efi: Consolidate region mapping logic 2016-09-09 16:06:37 +01:00
efi_32.c x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables() 2016-07-15 10:26:26 +02:00
efi_64.c x86/efi: Consolidate region mapping logic 2016-09-09 16:06:37 +01:00
efi_stub_32.S x86/efi: Mark initialization code as such 2014-10-03 18:41:03 +01:00
efi_stub_64.S x86/efi: Fix 7-parameter efi_call()s 2016-05-17 08:25:06 +02:00
efi_thunk_64.S x86/efi: Avoid triple faults during EFI mixed mode calls 2015-02-13 15:42:56 +00:00
Makefile objtool: Mark non-standard object files and directories 2016-02-29 08:35:02 +01:00
quirks.c x86/efi: Allocate a trampoline if needed in efi_free_boot_services() 2016-08-11 13:53:07 +02:00