summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/X64/CpuIdEx.S
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-28 14:23:36 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-28 14:23:36 +0000
commit2faf4da5f757acc60e690c13e41d7c46ba6d8613 (patch)
tree9094b59434df9bb9c62e7e34f0fbd22a18e5a594 /MdePkg/Library/BaseLib/X64/CpuIdEx.S
parent405b567555b3e133ba9b49be3821c3b1b0e2a120 (diff)
downloadedk2-platforms-2faf4da5f757acc60e690c13e41d7c46ba6d8613.tar.xz
Refine comments of X64 assembly files of MDE BaseLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6277 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/X64/CpuIdEx.S')
-rw-r--r--MdePkg/Library/BaseLib/X64/CpuIdEx.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/X64/CpuIdEx.S b/MdePkg/Library/BaseLib/X64/CpuIdEx.S
index 62d698a584..32abf114db 100644
--- a/MdePkg/Library/BaseLib/X64/CpuIdEx.S
+++ b/MdePkg/Library/BaseLib/X64/CpuIdEx.S
@@ -38,7 +38,7 @@ ASM_PFX(AsmCpuidEx):
push %rbx
movl %ecx,%eax
movl %edx,%ecx
- push %rax
+ push %rax # save Index on stack
cpuid
mov 0x38(%rsp), %r10
test %r10, %r10
@@ -57,6 +57,6 @@ L3:
jrcxz L4
mov %edx, (%rcx)
L4:
- pop %rax
+ pop %rax # restore Index to rax as return value
pop %rbx
ret