summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/DivU64x32.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/DivU64x32.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/DivU64x32.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x32.S b/MdePkg/Library/BaseLib/Ia32/DivU64x32.S
index ca2ca192f9..c3f13960cc 100644
--- a/MdePkg/Library/BaseLib/Ia32/DivU64x32.S
+++ b/MdePkg/Library/BaseLib/Ia32/DivU64x32.S
@@ -34,8 +34,8 @@ ASM_PFX(InternalMathDivU64x32):
movl 12(%esp), %ecx
xorl %edx, %edx
divl %ecx
- push %eax
+ push %eax # save quotient on stack
movl 8(%esp), %eax
divl %ecx
- pop %edx
+ pop %edx # restore high-order dword of the quotient
ret