summaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2013-04-30 09:46:23 -0400
committerPeter Jones <pjones@redhat.com>2013-04-30 09:46:23 -0400
commit117b1214d84392675f537ddfc126cd6e3d41facf (patch)
treef5f72db4ff708fc9ee7474cf5d4c87781839e557 /fallback.c
parent17266fd0578e36dc9da0d5b52b017605d93554b0 (diff)
downloadefi-boot-shim-117b1214d84392675f537ddfc126cd6e3d41facf.tar.gz
efi-boot-shim-117b1214d84392675f537ddfc126cd6e3d41facf.zip
Reset the system after restoring the boot entries
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fallback.c b/fallback.c
index 5ba0b797..6cc59aa6 100644
--- a/fallback.c
+++ b/fallback.c
@@ -612,5 +612,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
return rc;
}
+ Print(L"Reset System\n");
+ uefi_call_wrapper(RT->ResetSystem, 4, EfiResetWarm,
+ EFI_SUCCESS, 0, NULL);
+
return EFI_SUCCESS;
}