This commit is contained in:
gtian
2007-05-14 06:47:11 +00:00
parent 4d68c21db3
commit 63afc36022
11 changed files with 1342 additions and 89 deletions

View File

@@ -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);