diff options
author | Ashish Singhal <ashishsingha@nvidia.com> | 2023-12-06 16:52:47 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-24 01:32:27 +0000 |
commit | 1063665fa5466ece0814a3e764ee3382656956a1 (patch) | |
tree | 3a94dbe13871fda64049128b822fd4ad98ef1fc3 | |
parent | 7f72c2829fa29d2b4451c9a60e904df4c6a5df6c (diff) | |
download | edk2-1063665fa5466ece0814a3e764ee3382656956a1.tar.gz |
MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data
ResetSystem runtime call allows for sending reset data that
starts with a NULL terminated string. Add support to print
that string on console.
Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c index 42f1b1d015..72bb1d2be6 100644 --- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c +++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c @@ -252,6 +252,14 @@ RuntimeServiceResetSystem ( mResetNotifyDepth
));
+ if ((ResetData != NULL) && (DataSize != 0)) {
+ DEBUG ((
+ DEBUG_INFO,
+ "DXE ResetSystem2: ResetData: %s\n",
+ ResetData
+ ));
+ }
+
if (mResetNotifyDepth <= MAX_RESET_NOTIFY_DEPTH) {
if (!EfiAtRuntime ()) {
//
|