summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/Library
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2014-12-17 05:30:33 +0000
committervanjeff <vanjeff@Edk2>2014-12-17 05:30:33 +0000
commite5030c1ec58c4a9bf3e70414a0413ceff7f583a9 (patch)
tree353f105d85511e24993b8eda98556200161414f9 /UefiCpuPkg/Library
parenta1252397f50ecc02b37d4fa2db22f7b9fa7ffdf4 (diff)
downloadedk2-platforms-e5030c1ec58c4a9bf3e70414a0413ceff7f583a9.tar.xz
UefiCpuPkg CpuExceptionHandlerLib: Use %rax instead of %eax to make code consistence.
Make code consistence between ASM and S files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16530 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/Library')
-rw-r--r--UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S
index 49ef7b1968..6b62f095bd 100644
--- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S
+++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S
@@ -188,13 +188,13 @@ CommonInterruptEntry_al_0000:
pushq %rax # for ss
movzwq 32(%rbp), %rax
pushq %rax # for cs
- movl %ds, %eax
+ mov %ds, %rax
pushq %rax
- movl %es, %eax
+ mov %es, %rax
pushq %rax
- movl %fs, %eax
+ mov %fs, %rax
pushq %rax
- movl %gs, %eax
+ mov %gs, %rax
pushq %rax
movq %rcx, 8(%rbp) # save vector number
@@ -327,9 +327,9 @@ CommonInterruptEntry_al_0000:
# mov %rax, %fs ; not for fs
# (X64 will not use fs and gs, so we do not restore it)
popq %rax
- movl %eax, %es
+ mov %rax, %es
popq %rax
- movl %eax, %ds
+ mov %rax, %ds
popq 32(%rbp) # for cs
popq 56(%rbp) # for ss