Commit 0513fe1d authored by Alex Thorlton's avatar Alex Thorlton Committed by Matt Fleming

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 d2f7cbe7 ("x86/efi:
Runtime services virtual mapping").
Signed-off-by: default avatarAlex 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: default avatarMatt Fleming <matt@codeblueprint.co.uk>
parent cf289cef
...@@ -339,6 +339,7 @@ void __init efi_map_region(efi_memory_desc_t *md) ...@@ -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) void __init efi_map_region_fixed(efi_memory_desc_t *md)
{ {
__map_region(md, md->phys_addr);
__map_region(md, md->virt_addr); __map_region(md, md->virt_addr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment