summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/ResetSystemRuntimeDxe
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-08-10 13:32:58 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-09-02 10:07:17 +0800
commit37078045d717ea6c17eea33f05392a2f8979ebfa (patch)
tree841f8db18a59f4bcdd398e210d39c4817caa07fc /MdeModulePkg/Universal/ResetSystemRuntimeDxe
parente4d9e730c64d0862a3083f1d7021e6f50006710b (diff)
downloadedk2-37078045d717ea6c17eea33f05392a2f8979ebfa.tar.gz
edk2-37078045d717ea6c17eea33f05392a2f8979ebfa.tar.bz2
edk2-37078045d717ea6c17eea33f05392a2f8979ebfa.zip
MdeModulePkg/ResetSystemRuntimeDxe: Support EfiResetPlatformSpecific
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>
Diffstat (limited to 'MdeModulePkg/Universal/ResetSystemRuntimeDxe')
-rw-r--r--MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
index aa1ca162d6..f61e65e151 100644
--- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
+++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
@@ -1,7 +1,7 @@
/** @file
Reset Architectural Protocol implementation
- Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -86,11 +86,15 @@ DoS3 (
@param[in] ResetType The type of reset to perform.
@param[in] ResetStatus The status code for the reset.
- @param[in] DataSize The size, in bytes, of WatchdogData.
+ @param[in] DataSize The size, in bytes, of ResetData.
@param[in] ResetData For a ResetType of EfiResetCold, EfiResetWarm, or
EfiResetShutdown the data buffer starts with a Null-terminated
string, optionally followed by additional binary data.
-
+ The string is a description that the caller may use to further
+ indicate the reason for the system reset. ResetData is only
+ valid if ResetStatus is something other than EFI_SUCCESS
+ unless the ResetType is EfiResetPlatformSpecific
+ where a minimum amount of ResetData is always required.
**/
VOID
EFIAPI
@@ -144,6 +148,10 @@ ResetSystem (
ResetShutdown ();
return ;
+ case EfiResetPlatformSpecific:
+ ResetPlatformSpecific (DataSize, ResetData);
+ return;
+
default:
return ;
}