summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-21 03:34:55 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-21 03:34:55 +0000
commitab9a4f163831f944ea0372fc30618846a51d48f0 (patch)
tree91cc7a902b18dc3de9cc6c08d0b5c1636a043bc4
parent7800593dcaad8480e276ec5e949fff8ea242d492 (diff)
downloadedk2-ab9a4f163831f944ea0372fc30618846a51d48f0.zip
edk2-ab9a4f163831f944ea0372fc30618846a51d48f0.tar.gz
edk2-ab9a4f163831f944ea0372fc30618846a51d48f0.tar.bz2
Fix bugs in GNU assembly files for writing CR and DR registers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4590 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/BaseLib/X64/WriteCr2.S2
-rw-r--r--MdePkg/Library/BaseLib/X64/WriteDr1.S2
-rw-r--r--MdePkg/Library/BaseLib/X64/WriteDr2.S2
-rw-r--r--MdePkg/Library/BaseLib/X64/WriteDr3.S2
4 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseLib/X64/WriteCr2.S b/MdePkg/Library/BaseLib/X64/WriteCr2.S
index 6682161..9fc14c6 100644
--- a/MdePkg/Library/BaseLib/X64/WriteCr2.S
+++ b/MdePkg/Library/BaseLib/X64/WriteCr2.S
@@ -30,7 +30,7 @@
# );
#------------------------------------------------------------------------------
.global _AsmWriteCr2;
-_AsmWriteCr0:
+_AsmWriteCr2:
mov %rcx,%cr2
mov %rcx,%rax
ret
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr1.S b/MdePkg/Library/BaseLib/X64/WriteDr1.S
index af61b68..c69b5e2 100644
--- a/MdePkg/Library/BaseLib/X64/WriteDr1.S
+++ b/MdePkg/Library/BaseLib/X64/WriteDr1.S
@@ -33,5 +33,5 @@
.align 16;
_AsmWriteDr1:
mov %rcx, %dr1
- mov %rcx, rax
+ mov %rcx, %rax
ret
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr2.S b/MdePkg/Library/BaseLib/X64/WriteDr2.S
index a9e5369..ee4b669 100644
--- a/MdePkg/Library/BaseLib/X64/WriteDr2.S
+++ b/MdePkg/Library/BaseLib/X64/WriteDr2.S
@@ -33,5 +33,5 @@
.align 16;
_AsmWriteDr2:
mov %rcx, %dr2
- mov %rcx, rax
+ mov %rcx, %rax
ret
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr3.S b/MdePkg/Library/BaseLib/X64/WriteDr3.S
index 04017cc..bcda6c3 100644
--- a/MdePkg/Library/BaseLib/X64/WriteDr3.S
+++ b/MdePkg/Library/BaseLib/X64/WriteDr3.S
@@ -33,5 +33,5 @@
.align 16;
_AsmWriteDr3:
mov %rcx, %dr3
- mov %rcx, rax
+ mov %rcx, %rax
ret