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
IN UINT64 Counter\r
)\r
{\r
- while (Counter > 0xffffffff) {\r
+ while ((Counter & 0xffffffff00000000ULL) != 0) {\r
gMetronome->WaitForTick (gMetronome, 0xffffffff);\r
Counter -= 0xffffffff;\r
}\r