Disable watchdog timer

This commit is contained in:
2022-08-11 19:19:55 +02:00
父節點 5a56959333
當前提交 ba1efee47e

查看文件

@@ -81,6 +81,14 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
return STATUS_EFI_INCOMPATIBLE_VERSION; return STATUS_EFI_INCOMPATIBLE_VERSION;
} }
/* Disable watchdog timer */
Status = EfiSystemTable->BootServices->SetWatchdogTimer(0, 0x10000, 0, NULL);
if(Status != STATUS_EFI_SUCCESS)
{
/* Failed to disable the timer, print message */
BlDbgPrint(L"WARNING: Failed to disable watchdog timer");
}
/* Infinite bootloader loop */ /* Infinite bootloader loop */
for(;;); for(;;);