kaem-minimal: disable uefi watchdog timer.

This commit is contained in:
Andrius Štikonas 2022-07-11 22:44:15 +01:00
parent c5eecd49d5
commit 392d88a183
2 changed files with 3 additions and 1 deletions

View File

@ -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)();

View File

@ -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);