diff options
author | Kay Sievers <kay@vrfy.org> | 2013-02-17 22:02:30 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-02-17 22:02:30 +0100 |
commit | b35dcf35abf2bee995060fb6ee6bb0eddd177a01 (patch) | |
tree | 64e8599d54c9c8a58ca90a429c1dbc3b664dde04 | |
parent | 26e6b84d49b22268ce0b9c398f047b0ff42d72de (diff) |
enable/disable EFI watchdog
-rw-r--r-- | src/efi/gummiboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index 037ae43..cfe8410 100644 --- a/src/efi/gummiboot.c +++ b/src/efi/gummiboot.c @@ -1869,6 +1869,7 @@ EFI_STATUS EFIAPI efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { entry = config.entries[config.idx_default]; if (menu) { efivar_set_time_usec(L"LoaderTimeMenuUSec", 0); + uefi_call_wrapper(BS->SetWatchdogTimer, 4, 0, 0x10000, 0, NULL); if (!menu_run(&config, &entry, loaded_image_path)) break; } @@ -1876,6 +1877,7 @@ EFI_STATUS EFIAPI efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { /* export the selected boot entry to the system */ efivar_set(L"LoaderEntrySelected", entry->file, FALSE); + uefi_call_wrapper(BS->SetWatchdogTimer, 4, 5, 0x10000, 0, NULL); err = image_start(image, &config, entry); if (err == EFI_ACCESS_DENIED || err == EFI_SECURITY_VIOLATION) { |