]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixd EDKII r2594 build broken issue - MdePkg build failed with ICC.
authorqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 May 2007 06:27:11 +0000 (06:27 +0000)
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 May 2007 06:27:11 +0000 (06:27 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2596 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c

index 9c4a07b696e397753403920c89a5d3ff8125a2bd..2e511704d88ca0f794b63c821f2a34af5957c0f2 100644 (file)
@@ -32,19 +32,19 @@ InternalIpfDelay (
   IN      INT64                     Delay\r
   )\r
 {\r
   IN      INT64                     Delay\r
   )\r
 {\r
-  UINT64                             Ticks;\r
+  INT64                             Ticks;\r
 \r
   //\r
   // The target timer count is calculated here\r
   //\r
 \r
   //\r
   // The target timer count is calculated here\r
   //\r
-  Ticks = AsmReadItc () + Delay;\r
+  Ticks = (INT64)AsmReadItc () + Delay;\r
 \r
   //\r
   // Wait until time out\r
   // Delay > 2^63 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\r
 \r
   //\r
   // Wait until time out\r
   // Delay > 2^63 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\r
-  while (Ticks >= AsmReadItc());\r
+  while (Ticks - (INT64)AsmReadItc() >= 0);\r
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r