summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-10 06:57:04 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-10 06:57:04 +0000
commita9a812a0ed4ab3d83941fdc6da281aebdb9bb296 (patch)
tree869ad144d2c1dcd96d859a9ac4c40617dfc96588 /MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
parent741fb364170375f89aa9c29488cc402db07a3776 (diff)
downloadedk2-platforms-a9a812a0ed4ab3d83941fdc6da281aebdb9bb296.tar.xz
1. Added comments to ASM files
2. Fixed a bug in 64-bit AsmDisablePaging64(), which may cause a #GP exception. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2206 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/RShiftU64.asm')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/RShiftU64.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm b/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
index 793a8f988f..faa4e96771 100644
--- a/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
+++ b/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
@@ -32,10 +32,10 @@
; );
;------------------------------------------------------------------------------
InternalMathRShiftU64 PROC
- mov cl, [esp + 12]
+ mov cl, [esp + 12] ; cl <- Count
xor edx, edx
mov eax, [esp + 8]
- test cl, 32
+ test cl, 32 ; Count >= 32?
cmovz edx, eax
cmovz eax, [esp + 4]
shrd eax, edx, cl