]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg CpuExceptionHandlerLib: Use %rax instead of %eax to make code consistence.
authorJeff Fan <jeff.fan@intel.com>
Wed, 17 Dec 2014 05:30:33 +0000 (05:30 +0000)
committervanjeff <vanjeff@Edk2>
Wed, 17 Dec 2014 05:30:33 +0000 (05:30 +0000)
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

UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S

index 49ef7b19680d052ad359b056da10db7e37e920e9..6b62f095bdc0559526ab2c688e53dfda81e43cf8 100644 (file)
@@ -188,13 +188,13 @@ CommonInterruptEntry_al_0000:
     pushq   %rax                      # for ss\r
     movzwq  32(%rbp), %rax\r
     pushq   %rax                      # for cs\r
-    movl    %ds, %eax\r
+    mov     %ds, %rax\r
     pushq   %rax\r
-    movl    %es, %eax\r
+    mov     %es, %rax\r
     pushq   %rax\r
-    movl    %fs, %eax\r
+    mov     %fs, %rax\r
     pushq   %rax\r
-    movl    %gs, %eax\r
+    mov     %gs, %rax\r
     pushq   %rax\r
 \r
     movq    %rcx, 8(%rbp)                # save vector number\r
@@ -327,9 +327,9 @@ CommonInterruptEntry_al_0000:
     # mov   %rax, %fs ; not for fs\r
     # (X64 will not use fs and gs, so we do not restore it)\r
     popq    %rax\r
-    movl    %eax, %es\r
+    mov     %rax, %es\r
     popq    %rax\r
-    movl    %eax, %ds\r
+    mov     %rax, %ds\r
     popq    32(%rbp)  # for cs\r
     popq    56(%rbp)  # for ss\r
 \r