ShellPkg/DpDynamicCommand: Add ResetEnd support in DP command
DP command should be able to parse the FPDT ACPI table and dump the ResetEnd which was logged at the beginning of the firmware image execution. So that DP can calculate SEC phase time duration start from the beginning of firmware image execution. Cc: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: zhenhuay <zhenhua.yang@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
@ -548,6 +548,15 @@ ProcessPhases (
|
||||
|
||||
Total = 0;
|
||||
|
||||
// print Reset End if it's valid
|
||||
//
|
||||
if (SecTime > mResetEnd) {
|
||||
SecTime = SecTime - mResetEnd; // Calculate sec time duration start from the beginning of firmware image execution
|
||||
ElapsedTime = DurationInMicroSeconds (mResetEnd); // Calculate elapsed time in microseconds
|
||||
Total += DivU64x32 (ElapsedTime, 1000); // Accumulate time in milliseconds
|
||||
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DP_RESET_END), mDpHiiHandle, ElapsedTime);
|
||||
}
|
||||
|
||||
// print SEC phase duration time
|
||||
//
|
||||
if (SecTime > 0) {
|
||||
|
Reference in New Issue
Block a user