efi: Export more EFI table variables to sysfs
authorDave Young <dyoung@redhat.com>
Fri, 20 Dec 2013 10:02:17 +0000 (18:02 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Sat, 21 Dec 2013 15:29:36 +0000 (15:29 +0000)
commita0998eb15afeffbf52a2c2829318f67df9ac57b8
tree5f19084e93f018407d8dfc3521d073250719e67f
parent481f75c043cf44ec11c7fbdbbf37d43463f1e719
efi: Export more EFI table variables to sysfs

Export fw_vendor, runtime and config table physical addresses to
/sys/firmware/efi/{fw_vendor,runtime,config_table} because kexec kernels
need them.

From EFI spec these 3 variables will be updated to virtual address after
entering virtual mode. But kernel startup code will need the physical
address.

Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Documentation/ABI/testing/sysfs-firmware-efi [new file with mode: 0644]
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c
include/linux/efi.h