X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FWatchDogTimerDxe%2FWatchDogTimer.c;h=76289087bc2c5f403e186be26fc45aefe6d7c5a2;hb=e5e12de7d0a67111060c77723df39885c91a8ea5;hp=ec43aec283aed9546e4b91e8669c6beaf1cde521;hpb=de4c8a308017f1e55326887251a13a5b80162631;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.c b/MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.c index ec43aec283..76289087bc 100644 --- a/MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.c +++ b/MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.c @@ -21,24 +21,6 @@ Revision History --*/ -// -// The package level header files this module uses -// -#include -#include -// -// The protocols, PPI and GUID defintions for this module -// -// -// The Library classes this module consumes -// -#include -#include -#include -#include -#include -#include - #include "WatchDogTimer.h" // @@ -103,13 +85,7 @@ WatchdogTimerDriverExpires ( --*/ { - // - // Report error code before exiting - // - REPORT_STATUS_CODE ( - EFI_ERROR_CODE | EFI_ERROR_MINOR, - (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_CU_HP_EC_TIMER_EXPIRED) - ); + REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, PcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired)); // // If a notification function has been registered, then call it @@ -123,6 +99,7 @@ WatchdogTimerDriverExpires ( gRT->ResetSystem (EfiResetCold, EFI_TIMEOUT, 0, NULL); } + EFI_STATUS EFIAPI WatchdogTimerDriverRegisterHandler ( @@ -288,10 +265,6 @@ Returns: { EFI_STATUS Status; - REPORT_STATUS_CODE ( - EFI_PROGRESS_CODE, - (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_SW_PC_INIT_BEGIN) - ); // // Make sure the Watchdog Timer Architectural Protocol is not already installed in the system // @@ -320,10 +293,5 @@ Returns: ); ASSERT_EFI_ERROR (Status); - REPORT_STATUS_CODE ( - EFI_PROGRESS_CODE, - (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_SW_PC_INIT_END) - ); - return Status; }