diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-12-09 02:35:04 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-12-09 02:35:04 +0000 |
commit | da38df1d09d62f000c083871d6e25928ae949797 (patch) | |
tree | 42ab39316d117d870cd56d2433fbf897cf2c8d87 /MdeModulePkg | |
parent | da7c529ca1c93071792745005aea5edf38669731 (diff) | |
download | edk2-platforms-da38df1d09d62f000c083871d6e25928ae949797.tar.xz |
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
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 997942fa54..5bc7814f09 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 > 0xffffffff) {
+ while ((Counter & 0xffffffff00000000ULL) != 0) {
gMetronome->WaitForTick (gMetronome, 0xffffffff);
Counter -= 0xffffffff;
}
|