From 769e45317c60b07abe083d7da72ccfd69ad49d60 Mon Sep 17 00:00:00 2001 From: "Gao, Liming" Date: Tue, 9 Sep 2014 02:35:41 +0000 Subject: 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 Reviewed-by: Andrew Fish git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16065 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Misc/Stall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3