MdeModulePkg DXE Core: Refine code to avoid UNIXGCC build break.

The UNIXGCC compiler generates an internal call for division operation when compiling CoreInternalWaitForTick(), which causes build break due to link failure. This check-in changes the implementation of CoreInternalWaitForTick() to avoid this case.

Signed-off-by: rsun3
Reviewed-by: mdkinney


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12830 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2011-12-09 02:35:04 +00:00
parent da7c529ca1
commit da38df1d09
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ CoreInternalWaitForTick (
IN UINT64 Counter IN UINT64 Counter
) )
{ {
while (Counter > 0xffffffff) { while ((Counter & 0xffffffff00000000ULL) != 0) {
gMetronome->WaitForTick (gMetronome, 0xffffffff); gMetronome->WaitForTick (gMetronome, 0xffffffff);
Counter -= 0xffffffff; Counter -= 0xffffffff;
} }