mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-09 14:56:44 +00:00
shim: fix a wrong-abi call to Stall() and ResetSystem()
Woops. The net outcome of these is going to be a sleep of unknown duration, followed by either a) ResetSystem() with some random selection of warm/cold boot, or b) ResetSystem() returning an error and shim returning error from efi_main(). Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
3322257e61
commit
cf5f75fa14
6
shim.c
6
shim.c
@ -2440,9 +2440,9 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
|
|||||||
if (EFI_ERROR(efi_status)) {
|
if (EFI_ERROR(efi_status)) {
|
||||||
Print(L"Something has gone seriously wrong: %r\n", efi_status);
|
Print(L"Something has gone seriously wrong: %r\n", efi_status);
|
||||||
Print(L"shim cannot continue, sorry.\n");
|
Print(L"shim cannot continue, sorry.\n");
|
||||||
systab->BootServices->Stall(5000000);
|
uefi_call_wrapper(BS->Stall, 1, 5000000);
|
||||||
systab->RuntimeServices->ResetSystem(EfiResetShutdown,
|
uefi_call_wrapper(systab->RuntimeServices->ResetSystem, 4,
|
||||||
EFI_SECURITY_VIOLATION,
|
EfiResetShutdown, EFI_SECURITY_VIOLATION,
|
||||||
0, NULL);
|
0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user