]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/ResetSystemRuntimeDxe: Support EfiResetPlatformSpecific
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 10 Aug 2016 05:32:58 +0000 (13:32 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 2 Sep 2016 02:07:17 +0000 (10:07 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c

index aa1ca162d6aa8e037654cb746dfe774e1130fa9f..f61e65e151aba37738ed780db4bae9da2a46291b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Reset Architectural Protocol implementation\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -86,11 +86,15 @@ DoS3 (
 \r
   @param[in] ResetType          The type of reset to perform.\r
   @param[in] ResetStatus        The status code for the reset.\r
-  @param[in] DataSize           The size, in bytes, of WatchdogData.\r
+  @param[in] DataSize           The size, in bytes, of ResetData.\r
   @param[in] ResetData          For a ResetType of EfiResetCold, EfiResetWarm, or\r
                                 EfiResetShutdown the data buffer starts with a Null-terminated\r
                                 string, optionally followed by additional binary data.\r
-\r
+                                The string is a description that the caller may use to further\r
+                                indicate the reason for the system reset. ResetData is only\r
+                                valid if ResetStatus is something other than EFI_SUCCESS\r
+                                unless the ResetType is EfiResetPlatformSpecific\r
+                                where a minimum amount of ResetData is always required.\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -144,6 +148,10 @@ ResetSystem (
     ResetShutdown ();\r
     return ;\r
 \r
+  case EfiResetPlatformSpecific:\r
+    ResetPlatformSpecific (DataSize, ResetData);\r
+    return;\r
+\r
   default:\r
     return ;\r
   }\r