mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
570d030a61
commit
bcd8fa799d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue