]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.c
MdeModulePkg/Variable: Parameterize GetNextVariableInternal () stores
[mirror_edk2.git] / MdeModulePkg / Universal / WatchdogTimerDxe / WatchdogTimer.c
index ca6d3445f8e229a0043b5c7c3ee9f8831193285a..f72b4df80a03c94618ef1af77acd5892541cbcb3 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Implementation of Watchdog Timer Architectural Protocol using UEFI APIs.\r
-  \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -66,7 +60,7 @@ WatchdogTimerDriverExpires (
   IN VOID         *Context\r
   )\r
 {\r
-  REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, PcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired));\r
+  REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_CU_HP_EC_TIMER_EXPIRED));\r
 \r
   //\r
   // If a notification function has been registered, then call it\r
@@ -74,6 +68,9 @@ WatchdogTimerDriverExpires (
   if (mWatchdogTimerNotifyFunction != NULL) {\r
     mWatchdogTimerNotifyFunction (mWatchdogTimerPeriod);\r
   }\r
+\r
+  DEBUG ((EFI_D_ERROR, "Watchdog Timer resetting system\n"));\r
+\r
   //\r
   // Reset the platform\r
   //\r