Skip to content

Commit 6a7519e

Browse files
Semen ProtsenkoMatt Fleming
authored andcommitted
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]>
1 parent aee530c commit 6a7519e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/kernel/efi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ static int __init arm64_enter_virtual_mode(void)
463463
efi_native_runtime_setup();
464464
set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
465465

466+
efi.runtime_version = efi.systab->hdr.revision;
467+
466468
return 0;
467469

468470
err_unmap:

0 commit comments

Comments
 (0)