From 9a3e0f69fa6ea75c324a2f89750579e33284593b Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sun, 3 Dec 2023 23:46:20 +0100 Subject: [PATCH] Disable watchdog timer --- xtldr2/xtldr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xtldr2/xtldr.c b/xtldr2/xtldr.c index dfa0a03..2c96e1d 100644 --- a/xtldr2/xtldr.c +++ b/xtldr2/xtldr.c @@ -52,6 +52,14 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle, } } + /* Disable watchdog timer */ + Status = EfiSystemTable->BootServices->SetWatchdogTimer(0, 0x10000, 0, NULL); + if(Status != STATUS_EFI_SUCCESS) + { + /* Failed to disable the timer, print message */ + BlDebugPrint(L"WARNING: Failed to disable watchdog timer\n"); + } + /* Temporary infinite loop */ for(;;);