summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSemen Protsenko <semen.protsenko@linaro.org>2014-08-15 15:22:44 +0200
committerMatt Fleming <matt.fleming@intel.com>2014-08-22 09:45:41 +0200
commit6a7519e81321343165f89abb8b616df186d3e57a (patch)
tree3e7e673b42ae7665522e22cb3a42bd9d39546c74 /arch
parentfirmware: Do not use WARN_ON(!spin_is_locked()) (diff)
downloadlinux-6a7519e81321343165f89abb8b616df186d3e57a.tar.xz
linux-6a7519e81321343165f89abb8b616df186d3e57a.zip
efi/arm64: Store Runtime Services revision
"efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions). Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail. Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: <stable@vger.kernel.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kernel/efi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
index e72f3100958f..5dbb7bd3b838 100644
--- a/arch/arm64/kernel/efi.c
+++ b/arch/arm64/kernel/efi.c
@@ -463,6 +463,8 @@ static int __init arm64_enter_virtual_mode(void)
efi_native_runtime_setup();
set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
+ efi.runtime_version = efi.systab->hdr.revision;
+
return 0;
err_unmap: