diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-03-02 03:11:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-03-02 03:11:24 +0000 |
commit | 5a424a05528c61670e8d0251923f757461c044a6 (patch) | |
tree | e32243847e4958c9b9e019bc9718afc5faab0cf9 /sys/arch/armv7 | |
parent | 869285e753c55977e33001e8b8f4ae4dde38d076 (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/armv7')
-rw-r--r-- | sys/arch/armv7/stand/efiboot/efiboot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c index dbc434da7bf..82a2b0438b0 100644 --- a/sys/arch/armv7/stand/efiboot/efiboot.c +++ b/sys/arch/armv7/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.19 2017/08/21 20:05:32 kettenis Exp $ */ +/* $OpenBSD: efiboot.c,v 1.20 2018/03/02 03:11:23 jsg Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> @@ -71,6 +71,9 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab) BS = ST->BootServices; IH = image; + /* disable reset by watchdog after 5 minutes */ + EFI_CALL(BS->SetWatchdogTimer, 0, 0, 0, NULL); + status = EFI_CALL(BS->HandleProtocol, image, &imgp_guid, (void **)&imgp); if (status == EFI_SUCCESS) |