summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Thorlton <athorlton@sgi.com>2016-08-06 01:59:35 +0200
committerMatt Fleming <matt@codeblueprint.co.uk>2016-09-09 17:08:47 +0200
commit0513fe1d28e45deb39159dbeedf0660c3f0effd2 (patch)
tree3b89bb7d4619a08dc60053b6d6c3c1cdbf2df172
parentlib/ucs2_string: Speed up ucs2_utf8size() (diff)
downloadlinux-0513fe1d28e45deb39159dbeedf0660c3f0effd2.tar.xz
linux-0513fe1d28e45deb39159dbeedf0660c3f0effd2.zip
x86/efi: Map in physical addresses in efi_map_region_fixed
This is a simple change to add in the physical mappings as well as the virtual mappings in efi_map_region_fixed. The motivation here is to get access to EFI runtime code that is only available via the 1:1 mappings on a kexec'd kernel. The added call is essentially the kexec analog of the first __map_region that Boris put in efi_map_region in commit d2f7cbe7b26a ("x86/efi: Runtime services virtual mapping"). Signed-off-by: Alex Thorlton <athorlton@sgi.com> Cc: Russ Anderson <rja@sgi.com> Cc: Dimitri Sivanich <sivanich@sgi.com> Cc: Mike Travis <travis@sgi.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Dave Young <dyoung@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
-rw-r--r--arch/x86/platform/efi/efi_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index 45434ea345e9..e1ca71259468 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -339,6 +339,7 @@ void __init efi_map_region(efi_memory_desc_t *md)
*/
void __init efi_map_region_fixed(efi_memory_desc_t *md)
{
+ __map_region(md, md->phys_addr);
__map_region(md, md->virt_addr);
}