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/arm64/stand/efiboot | |
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/arm64/stand/efiboot')
-rw-r--r-- | sys/arch/arm64/stand/efiboot/efiboot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/arm64/stand/efiboot/efiboot.c b/sys/arch/arm64/stand/efiboot/efiboot.c index 8618a6b5ec0..9ced90a2b31 100644 --- a/sys/arch/arm64/stand/efiboot/efiboot.c +++ b/sys/arch/arm64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.15 2018/02/06 20:35:21 naddy Exp $ */ +/* $OpenBSD: efiboot.c,v 1.16 2018/03/02 03:11:23 jsg Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> @@ -74,6 +74,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) |