diff options
| author | Ian M. <ian@aptel.org> | 2026-09-11 04:26:01 +0000 |
|---|---|---|
| committer | Ian M. <ian@aptel.org> | 2026-09-11 04:26:01 +0000 |
| commit | 09a38cfa889fda6bd63063b0516950d18e5e2110 (patch) | |
| tree | 3c522ff6c92118d6d7c82135b4e8a66bf77d9d0d /core/sboot.c | |
| parent | 28b2d5ee87176e460322a283d3a90925d33d416a (diff) | |
sboot: Disable watchdog timer on startup
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'core/sboot.c')
| -rw-r--r-- | core/sboot.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/sboot.c b/core/sboot.c index e0b2387..1649b7e 100644 --- a/core/sboot.c +++ b/core/sboot.c @@ -7,6 +7,7 @@ #include <efilib.h> #include <sboot/sboot.h> #include <sboot/config.h> +#include <sboot/fwi.h> EFI_STATUS EFIAPI @@ -25,6 +26,14 @@ efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) Hcf(); } + /* Disable the watchdog timer */ + FwiSetWatchdogTimer( + 0, + 0, + 0, + NULL + ); + Print( L"SBOOT %s - %d boot entrie(s)\n", SBOOT_VERSION, |
