Fix a bug in InternalMathDivRemU64x64(). The bug is that the 64-bit divisor is design...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Oct 2006 10:09:26 +0000 (10:09 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Oct 2006 10:09:26 +0000 (10:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1693 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.c

index 62034f7..2a89314 100644 (file)
@@ -28,6 +28,7 @@ InternalMathDivRemU64x64 (
     mov     eax, dword ptr [Dividend + 0]   // edx:eax <- dividend\r
     mov     edi, edx\r
     mov     esi, eax                    // edi:esi <- dividend\r
+    mov     ecx, dword ptr [Divisor + 4]\r
     mov     ebx, dword ptr [Divisor + 0]   // ecx:ebx <- divisor\r
 BitLoop:\r
     shr     edx, 1\r