efi_loader: implement SetWatchdogTimer

The watchdog is initialized with a 5 minute timeout period.
It can be reset by SetWatchdogTimer.
It is stopped by ExitBoottimeServices.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt
2017-10-18 18:13:04 +02:00
committed by Alexander Graf
parent 7b9f8ad749
commit b3d6090042
5 changed files with 98 additions and 15 deletions

View File

@@ -43,6 +43,7 @@ static void efi_init_obj_list(void)
#ifdef CONFIG_GENERATE_SMBIOS_TABLE
efi_smbios_register();
#endif
efi_watchdog_register();
/* Initialize EFI runtime services */
efi_reset_system_init();