mirror of https://github.com/acidanthera/audk.git
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:
parent
7cde720e51
commit
41a51d1735
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue