summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 13:43:50 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 13:43:50 +0000
commitbcd8fa799dc3abb68a45b853f98374d873d3a201 (patch)
tree5b112195a19c8c00106a48f7297226f25a88d7a0 /ArmPlatformPkg
parent570d030a61101e98e80a05c3b642573b5a1b6c92 (diff)
downloadedk2-platforms-bcd8fa799dc3abb68a45b853f98374d873d3a201.tar.xz
ArmPlatformPkg/SP804TimerLib: Fixed the performance timer
The SP804 timer counts down. Change GetPerformanceCounterProperties () to declare this property. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11989 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-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);