diff options
author | Semen Protsenko <semen.protsenko@linaro.org> | 2014-08-15 09:22:44 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-08-22 03:45:41 -0400 |
commit | 6a7519e81321343165f89abb8b616df186d3e57a (patch) | |
tree | 3e7e673b42ae7665522e22cb3a42bd9d39546c74 /arch | |
parent | aee530cfecf4f3ec83b78406bac618cec35853f8 (diff) |
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.c | 2 |
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) | |||
463 | efi_native_runtime_setup(); | 463 | efi_native_runtime_setup(); |
464 | set_bit(EFI_RUNTIME_SERVICES, &efi.flags); | 464 | set_bit(EFI_RUNTIME_SERVICES, &efi.flags); |
465 | 465 | ||
466 | efi.runtime_version = efi.systab->hdr.revision; | ||
467 | |||
466 | return 0; | 468 | return 0; |
467 | 469 | ||
468 | err_unmap: | 470 | err_unmap: |