Fix bugs in GNU assembly files for writing CR and DR registers.
authorxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 21 Jan 2008 03:34:55 +0000 (03:34 +0000)
committerxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 21 Jan 2008 03:34:55 +0000 (03:34 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4590 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/BaseLib/X64/WriteCr2.S
edk2/MdePkg/Library/BaseLib/X64/WriteDr1.S
edk2/MdePkg/Library/BaseLib/X64/WriteDr2.S
edk2/MdePkg/Library/BaseLib/X64/WriteDr3.S

index 6682161..9fc14c6 100644 (file)
@@ -30,7 +30,7 @@
 #   );
 #------------------------------------------------------------------------------
 .global _AsmWriteCr2;
-_AsmWriteCr0:
+_AsmWriteCr2:
     mov    %rcx,%cr2
     mov    %rcx,%rax
     ret
index af61b68..c69b5e2 100644 (file)
@@ -33,5 +33,5 @@
 .align 16;
 _AsmWriteDr1:
     mov     %rcx, %dr1
-    mov     %rcx, rax
+    mov     %rcx, %rax
     ret
index a9e5369..ee4b669 100644 (file)
@@ -33,5 +33,5 @@
 .align 16;
 _AsmWriteDr2:
     mov     %rcx, %dr2
-    mov     %rcx, rax
+    mov     %rcx, %rax
     ret
index 04017cc..bcda6c3 100644 (file)
@@ -33,5 +33,5 @@
 .align 16;
 _AsmWriteDr3:
     mov     %rcx, %dr3
-    mov     %rcx, rax
+    mov     %rcx, %rax
     ret