]> git.proxmox.com Git - mirror_edk2.git/commitdiff
To pass ICC build.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 14 Jan 2009 07:45:27 +0000 (07:45 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 14 Jan 2009 07:45:27 +0000 (07:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7268 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/SecPeiDxeTimerLibCpu/X86TimerLib.c

index aff51932f6d9643347ecfafb900d58f1c207d816..65957e2a61627ca0d73dec9ed78135458a3b6dbb 100644 (file)
@@ -105,6 +105,7 @@ InternalX86Delay (
   )\r
 {\r
   INT32                             Ticks;\r
+  UINT32                            PowerOfTwoCounter;\r
 \r
   //\r
   // The target timer count is calculated here\r
@@ -116,7 +117,8 @@ InternalX86Delay (
   // Delay > 2^31 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\r
-  while (((UINT32)(InternalX86GetTimerTick (ApicBase) - Ticks) & GetPowerOfTwo32 ((MmioRead32 (ApicBase + APIC_TMICT)))) == 0) {\r
+  PowerOfTwoCounter = GetPowerOfTwo32 (MmioRead32 (ApicBase + APIC_TMICT));\r
+  while (((UINT32)(InternalX86GetTimerTick (ApicBase) - Ticks) & PowerOfTwoCounter) == 0) {\r
     CpuPause ();\r
   }\r
 }\r