]> 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 04:44:59 +0000 (04:44 +0000)
committerqouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 May 2007 04:44:59 +0000 (04:44 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2595 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c

index f4e9838745b6f63096fa572978ca6dbfac5ccf96..9c4a07b696e397753403920c89a5d3ff8125a2bd 100644 (file)
@@ -32,7 +32,7 @@ InternalIpfDelay (
   IN      INT64                     Delay\r
   )\r
 {\r
   IN      INT64                     Delay\r
   )\r
 {\r
-  INT64                             Ticks;\r
+  UINT64                             Ticks;\r
 \r
   //\r
   // The target timer count is calculated here\r
 \r
   //\r
   // The target timer count is calculated here\r
@@ -44,7 +44,7 @@ InternalIpfDelay (
   // Delay > 2^63 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\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 () >= 0);\r
+  while (Ticks >= AsmReadItc());\r
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r