]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/DynamicCommand/DpDynamicCommand/DpTrace.c
ShellPkg/DpDynamicCommand: Add ResetEnd support in DP command
[mirror_edk2.git] / ShellPkg / DynamicCommand / DpDynamicCommand / DpTrace.c
index 0abb8797ec6006b63e7512b51b27f945264fcc98..9c0a9a06a1c985e918c3992f7d77915f79120dea 100644 (file)
@@ -548,6 +548,15 @@ ProcessPhases (
 \r
   Total = 0;\r
 \r
 \r
   Total = 0;\r
 \r
+  // print Reset End if it's valid\r
+  //\r
+  if (SecTime > mResetEnd) {\r
+    SecTime     = SecTime - mResetEnd;                // Calculate sec time duration start from the beginning of firmware image execution\r
+    ElapsedTime = DurationInMicroSeconds (mResetEnd); // Calculate elapsed time in microseconds\r
+    Total      += DivU64x32 (ElapsedTime, 1000);      // Accumulate time in milliseconds\r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DP_RESET_END), mDpHiiHandle, ElapsedTime);\r
+  }\r
+\r
   // print SEC phase duration time\r
   //\r
   if (SecTime > 0) {\r
   // print SEC phase duration time\r
   //\r
   if (SecTime > 0) {\r