mirror of https://github.com/acidanthera/audk.git
To pass ICC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7268 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
52dbc2fb17
commit
ad951a3714
|
@ -105,6 +105,7 @@ InternalX86Delay (
|
|||
)
|
||||
{
|
||||
INT32 Ticks;
|
||||
UINT32 PowerOfTwoCounter;
|
||||
|
||||
//
|
||||
// The target timer count is calculated here
|
||||
|
@ -116,7 +117,8 @@ InternalX86Delay (
|
|||
// Delay > 2^31 could not be handled by this function
|
||||
// Timer wrap-arounds are handled correctly by this function
|
||||
//
|
||||
while (((UINT32)(InternalX86GetTimerTick (ApicBase) - Ticks) & GetPowerOfTwo32 ((MmioRead32 (ApicBase + APIC_TMICT)))) == 0) {
|
||||
PowerOfTwoCounter = GetPowerOfTwo32 (MmioRead32 (ApicBase + APIC_TMICT));
|
||||
while (((UINT32)(InternalX86GetTimerTick (ApicBase) - Ticks) & PowerOfTwoCounter) == 0) {
|
||||
CpuPause ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue