summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib
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 /MdePkg/Library/BaseLib
parent7800593dcaad8480e276ec5e949fff8ea242d492 (diff)
downloadedk2-platforms-ab9a4f163831f944ea0372fc30618846a51d48f0.tar.xz
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
Diffstat (limited to 'MdePkg/Library/BaseLib')
-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 66821616e1..9fc14c605c 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 af61b68e88..c69b5e2bf4 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 a9e5369175..ee4b669ea0 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 04017cc886..bcda6c3f0d 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