summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorGao, Liming <liming.gao@intel.com>2014-09-09 02:35:41 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-09 02:35:41 +0000
commit769e45317c60b07abe083d7da72ccfd69ad49d60 (patch)
treeb0cba37c0983af9bf6504c2ffa86dfc447ef9fc4 /MdeModulePkg
parentcc72674b58c3430c2f4a876ecf8a0474a717a235 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Misc/Stall.c b/MdeModulePkg/Core/Dxe/Misc/Stall.c
index 5bc7814f09..73e90785e2 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;
}