x86/efi: Add a wrapper function efi_map_region_fixed()
authorDave Young <dyoung@redhat.com>
Fri, 20 Dec 2013 10:02:14 +0000 (18:02 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Sat, 21 Dec 2013 15:09:51 +0000 (15:09 +0000)
commit3b2664964bc886ae9d5127c8d3708b1acc0626d2
treefd6e3d90de57bf7229bdfa1376e04e8cd55acbab
parent2da6e57cce14a1c3b0692d6f877b72e185110e2e
x86/efi: Add a wrapper function efi_map_region_fixed()

Kexec kernel will use saved runtime virtual mapping, so add a new
function efi_map_region_fixed() for directly mapping a md to md->virt.

The md is passed in from 1st kernel, the virtual addr is saved in
md->virt_addr.

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Borislav Petkov <bp@suse.de>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi_32.c
arch/x86/platform/efi/efi_64.c