mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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]>
This commit is contained in:
parent
aee530cfec
commit
6a7519e813
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue