]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/SP804TimerLib: Fixed the performance timer
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Jul 2011 13:43:50 +0000 (13:43 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 6 Jul 2011 13:43:50 +0000 (13:43 +0000)
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

ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.c

index 6dc79f8e5a5ab30c90df78418dec6d8a9114cb0e..f3bb177c74f6f0670addceb4577788636b42e216 100644 (file)
@@ -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);