diff options
author | Semen Protsenko <[email protected]> | 2014-08-15 16:22:44 +0300 |
---|---|---|
committer | Matt Fleming <[email protected]> | 2014-08-22 08:45:41 +0100 |
commit | 6a7519e81321343165f89abb8b616df186d3e57a (patch) | |
tree | 3e7e673b42ae7665522e22cb3a42bd9d39546c74 | |
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 <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Cc: <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
-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) efi_native_runtime_setup(); set_bit(EFI_RUNTIME_SERVICES, &efi.flags); + efi.runtime_version = efi.systab->hdr.revision; + return 0; err_unmap: |