summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-11-05 14:59:04 -0500
committerPeter Jones <pjones@redhat.com>2015-11-17 11:39:54 -0500
commitcf5f75fa147355857875eab861a61f75ba47492c (patch)
treee2abca7d11cac439cd038c1d9a3c2837cd1b6f42
parent3322257e611e2000f79726d295bb4845bbe449e7 (diff)
downloadefi-boot-shim-cf5f75fa147355857875eab861a61f75ba47492c.tar.gz
efi-boot-shim-cf5f75fa147355857875eab861a61f75ba47492c.zip
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>
-rw-r--r--shim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shim.c b/shim.c
index fb2e4ab2..aa36663f 100644
--- a/shim.c
+++ b/shim.c
@@ -2440,10 +2440,10 @@ efi_main (EFI_HANDLE passed_image_handle, EFI_SYSTEM_TABLE *passed_systab)
if (EFI_ERROR(efi_status)) {
Print(L"Something has gone seriously wrong: %r\n", efi_status);
Print(L"shim cannot continue, sorry.\n");
- systab->BootServices->Stall(5000000);
- systab->RuntimeServices->ResetSystem(EfiResetShutdown,
- EFI_SECURITY_VIOLATION,
- 0, NULL);
+ uefi_call_wrapper(BS->Stall, 1, 5000000);
+ uefi_call_wrapper(systab->RuntimeServices->ResetSystem, 4,
+ EfiResetShutdown, EFI_SECURITY_VIOLATION,
+ 0, NULL);
}
/*