public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data
@ 2023-12-07  0:21 Ashish Singhal via groups.io
  2023-12-14 23:30 ` Ashish Singhal via groups.io
  0 siblings, 1 reply; 7+ messages in thread
From: Ashish Singhal via groups.io @ 2023-12-07  0:21 UTC (permalink / raw)
  To: devel, gaoliming, jbrasen; +Cc: Ashish Singhal

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>
---
 .../Universal/ResetSystemRuntimeDxe/ResetSystem.c         | 8 ++++++++
 1 file changed, 8 insertions(+)

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 ()) {
       //
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112145): https://edk2.groups.io/g/devel/message/112145
Mute This Topic: https://groups.io/mt/103025596/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-22  2:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07  0:21 [edk2-devel] [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data Ashish Singhal via groups.io
2023-12-14 23:30 ` Ashish Singhal via groups.io
2024-01-01 16:47   ` Ashish Singhal via groups.io
2024-01-19 18:09     ` Ashish Singhal via groups.io
2024-01-19 18:38       ` Leif Lindholm
2024-01-22  1:31         ` Gao, Zhichao
2024-01-22  2:52           ` Ashish Singhal via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox