diff options
author | Gao, Liming <liming.gao@intel.com> | 2014-09-09 02:35:41 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-09-09 02:35:41 +0000 |
commit | 769e45317c60b07abe083d7da72ccfd69ad49d60 (patch) | |
tree | b0cba37c0983af9bf6504c2ffa86dfc447ef9fc4 /MdeModulePkg | |
parent | cc72674b58c3430c2f4a876ecf8a0474a717a235 (diff) | |
download | edk2-769e45317c60b07abe083d7da72ccfd69ad49d60.zip edk2-769e45317c60b07abe083d7da72ccfd69ad49d60.tar.gz edk2-769e45317c60b07abe083d7da72ccfd69ad49d60.tar.bz2 |
MdeModulePkg: Fix XCODE Link Issue in DxeCore
In XCODE tool chain, the 64-bit bit wise and operation is causing the compiler to emit an __umoddi3.
This patch uses BaseLib API to replace 64-bit bit operation.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Andrew Fish <afish@apple.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Misc/Stall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Misc/Stall.c b/MdeModulePkg/Core/Dxe/Misc/Stall.c index 5bc7814..73e9078 100644 --- a/MdeModulePkg/Core/Dxe/Misc/Stall.c +++ b/MdeModulePkg/Core/Dxe/Misc/Stall.c @@ -32,7 +32,7 @@ CoreInternalWaitForTick ( IN UINT64 Counter
)
{
- while ((Counter & 0xffffffff00000000ULL) != 0) {
+ while (RShiftU64 (Counter, 32) > 0) {
gMetronome->WaitForTick (gMetronome, 0xffffffff);
Counter -= 0xffffffff;
}
|