diff options
author | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-05-15 06:27:11 +0000 |
---|---|---|
committer | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-05-15 06:27:11 +0000 |
commit | ceffbc1900072d6def2324d558cf4ef2813ceb8c (patch) | |
tree | 7a614b15d3d6a94f46f4d8eb6e76c1eb2eedd72d /MdePkg/Library | |
parent | c39294176417321486316962aa705508d5a72ecf (diff) | |
download | edk2-platforms-ceffbc1900072d6def2324d558cf4ef2813ceb8c.tar.xz |
Fixd EDKII r2594 build broken issue - MdePkg build failed with ICC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2596 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c b/MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c index 9c4a07b696..2e511704d8 100644 --- a/MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c +++ b/MdePkg/Library/SecPeiDxeTimerLibCpu/IpfTimerLib.c @@ -32,19 +32,19 @@ InternalIpfDelay ( IN INT64 Delay
)
{
- UINT64 Ticks;
+ INT64 Ticks;
//
// The target timer count is calculated here
//
- Ticks = AsmReadItc () + Delay;
+ Ticks = (INT64)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 >= AsmReadItc());
+ while (Ticks - (INT64)AsmReadItc() >= 0);
}
/**
|