mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
ShellPkg/DynamicCommand/DpDynamicCommand: Fix displaying timer properties
The timer/counter start and end value were hardcoded instead of being read from the performance protocol. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Upstream-Status: Pending
This commit is contained in:
@@ -867,8 +867,8 @@ RunDp (
|
||||
}
|
||||
|
||||
TimerInfo.Frequency = (UINT32)DivU64x32 (PerformanceProperty->Frequency, 1000);
|
||||
TimerInfo.StartCount = 0;
|
||||
TimerInfo.EndCount = 0xFFFF;
|
||||
TimerInfo.StartCount = PerformanceProperty->TimerStartValue;
|
||||
TimerInfo.EndCount = PerformanceProperty->TimerEndValue;
|
||||
TimerInfo.CountUp = TRUE;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user