x86/efi: Add a wrapper function efi_map_region_fixed()
[sfrench/cifs-2.6.git] / arch / x86 / platform / efi / efi_64.c
index c5a6491d95da51bfbeeeda8f2037ed892a69e314..ff08cb19630b1eed50e2c87008563cd23d1077fb 100644 (file)
@@ -199,6 +199,16 @@ void __init efi_map_region(efi_memory_desc_t *md)
        md->virt_addr = efi_va;
 }
 
+/*
+ * kexec kernel will use efi_map_region_fixed to map efi runtime memory ranges.
+ * md->virt_addr is the original virtual address which had been mapped in kexec
+ * 1st kernel.
+ */
+void __init efi_map_region_fixed(efi_memory_desc_t *md)
+{
+       __map_region(md, md->virt_addr);
+}
+
 void __iomem *__init efi_ioremap(unsigned long phys_addr, unsigned long size,
                                 u32 type, u64 attribute)
 {