summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c b/ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c
index 6dc79f8e5a..f3bb177c74 100644
--- a/ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c
+++ b/ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c
@@ -185,12 +185,12 @@ GetPerformanceCounterProperties (
{
if (StartValue != NULL) {
// Timer starts with the reload value
- *StartValue = (UINT64)0ULL;
+ *StartValue = 0xFFFFFFFF;
}
if (EndValue != NULL) {
- // Timer counts up to 0xFFFFFFFF
- *EndValue = 0xFFFFFFFF;
+ // Timer counts down to 0x0
+ *EndValue = (UINT64)0ULL;
}
return PcdGet64 (PcdEmbeddedPerformanceCounterFrequencyInHz);