]> git.hungrycats.org Git - linux/commitdiff
efi/arm64: Store Runtime Services revision
authorSemen Protsenko <semen.protsenko@linaro.org>
Fri, 15 Aug 2014 13:22:44 +0000 (16:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:36:28 +0000 (16:36 -0700)
commit 6a7519e81321343165f89abb8b616df186d3e57a upstream.

"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>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/efi.c

index 14db1f6e8d7fe7064533b41619a35d5502840a43..c0aead7d1a72b34cd8e2bbf15f216e1136bd7d47 100644 (file)
@@ -464,6 +464,8 @@ static int __init arm64_enter_virtual_mode(void)
 
        set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
 
+       efi.runtime_version = efi.systab->hdr.revision;
+
        return 0;
 }
 early_initcall(arm64_enter_virtual_mode);