summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/efiboot
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-03-02 03:11:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-03-02 03:11:24 +0000
commit5a424a05528c61670e8d0251923f757461c044a6 (patch)
treee32243847e4958c9b9e019bc9718afc5faab0cf9 /sys/arch/amd64/stand/efiboot
parent869285e753c55977e33001e8b8f4ae4dde38d076 (diff)
The UEFI specification states that a watchdog timer should be armed for
five minutes. Disable the timer to make it possible to use efiboot for more than five minutes. ok patrick@ kettenis@
Diffstat (limited to 'sys/arch/amd64/stand/efiboot')
-rw-r--r--sys/arch/amd64/stand/efiboot/efiboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efiboot.c b/sys/arch/amd64/stand/efiboot/efiboot.c
index 4e2f63aa9fc..a71d2cf93fb 100644
--- a/sys/arch/amd64/stand/efiboot/efiboot.c
+++ b/sys/arch/amd64/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.28 2017/11/25 19:02:07 patrick Exp $ */
+/* $OpenBSD: efiboot.c,v 1.29 2018/03/02 03:11:23 jsg Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -81,6 +81,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
RS = ST->RuntimeServices;
IH = image;
+ /* disable reset by watchdog after 5 minutes */
+ EFI_CALL(BS->SetWatchdogTimer, 0, 0, 0, NULL);
+
efi_video_init();
efi_heap_init();