ArmPkg/GenericWatchdogDxe: Disable WDOG before the protocol installed

This moves the WatchdogDisable() function before the installation of the
gEfiWatchdogTimerArchProtocolGuid protocol. It allows a platform to
promptly carry out platform specific configurations, such as UEFI boot
monitoring, by registering the protocol installation callback.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
This commit is contained in:
Nhi Pham 2024-08-23 09:01:37 +07:00 committed by mergify[bot]
parent 7cde720e51
commit 41a51d1735
1 changed files with 2 additions and 2 deletions

View File

@ -391,6 +391,8 @@ GenericWatchdogEntry (
goto UnregisterHandler;
}
WatchdogDisable ();
// Install the Timer Architectural Protocol onto a new handle
Handle = NULL;
Status = gBS->InstallMultipleProtocolInterfaces (
@ -413,8 +415,6 @@ GenericWatchdogEntry (
);
ASSERT_EFI_ERROR (Status);
WatchdogDisable ();
return EFI_SUCCESS;
UnregisterHandler: