git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2593 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -37,14 +37,14 @@ InternalIpfDelay (
|
||||
//
|
||||
// The target timer count is calculated here
|
||||
//
|
||||
Ticks = IpfReadItc () + Delay;
|
||||
Ticks = AsmReadItc () + Delay;
|
||||
|
||||
//
|
||||
// Wait until time out
|
||||
// Delay > 2^63 could not be handled by this function
|
||||
// Timer wrap-arounds are handled correctly by this function
|
||||
//
|
||||
while (Ticks - IpfReadItc () >= 0);
|
||||
while (Ticks - AsmReadItc () >= 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,7 +113,7 @@ GetPerformanceCounter (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return IpfReadItc ();
|
||||
return AsmReadItc ();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,7 +146,7 @@ GetPerformanceCounterProperties (
|
||||
OUT UINT64 *EndValue OPTIONAL
|
||||
)
|
||||
{
|
||||
PAL_PROC_RETURN PalRet;
|
||||
PAL_CALL_RETURN PalRet;
|
||||
UINT64 BaseFrequence;
|
||||
|
||||
PalRet = PalCallStatic (NULL, 13, 0, 0, 0);
|
||||
|
Reference in New Issue
Block a user