From 392d88a183ebc887aee98e820c0f2e0a3d182ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 11 Jul 2022 22:44:15 +0100 Subject: [PATCH] kaem-minimal: disable uefi watchdog timer. --- Development/efi/boot_table.h | 2 +- Development/kaem-minimal.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Development/efi/boot_table.h b/Development/efi/boot_table.h index 52d538e..c70a248 100644 --- a/Development/efi/boot_table.h +++ b/Development/efi/boot_table.h @@ -60,7 +60,7 @@ struct efi_boot_table efi_status_t (*exit_boot_services)(efi_handle_t, efi_uint_t); // Miscellaneous Services - void (*unused26)(); + efi_status_t (*set_watchdog_timer)(efi_uint_t timeout, uint64_t watchdog_code, efi_uint_t data_size, uint16_t *watchdog_data); void (*unused27)(); void (*unused28)(); diff --git a/Development/kaem-minimal.c b/Development/kaem-minimal.c index 0f5e4e5..dca1b12 100644 --- a/Development/kaem-minimal.c +++ b/Development/kaem-minimal.c @@ -23,6 +23,8 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system struct efi_guid guid2 = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID; struct efi_guid guid3 = EFI_FILE_INFO_GUID; + system->boot->set_watchdog_timer(0, 0, 0, NULL); + /* Open Loaded Image protocol */ system->boot->open_protocol(image_handle, &guid1, (void **) &image, image_handle, 0, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);