summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm b/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm
index 186d094eee..7647880202 100644
--- a/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm
+++ b/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm
@@ -33,8 +33,8 @@
; );
;------------------------------------------------------------------------------
InternalMathSwapBytes64 PROC
- mov eax, [esp + 8]
- mov edx, [esp + 4]
+ mov eax, [esp + 8] ; eax <- upper 32 bits
+ mov edx, [esp + 4] ; edx <- lower 32 bits
bswap eax
bswap edx
ret