summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/X64/WriteMsr64.asm
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/X64/WriteMsr64.asm')
-rw-r--r--MdePkg/Library/BaseLib/X64/WriteMsr64.asm4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/X64/WriteMsr64.asm b/MdePkg/Library/BaseLib/X64/WriteMsr64.asm
index 3337f45891..6b8066f922 100644
--- a/MdePkg/Library/BaseLib/X64/WriteMsr64.asm
+++ b/MdePkg/Library/BaseLib/X64/WriteMsr64.asm
@@ -32,11 +32,9 @@
; );
;------------------------------------------------------------------------------
AsmWriteMsr64 PROC
- push rdx
- mov eax, edx
+ mov rax, rdx
shr rdx, 20h
wrmsr
- pop rax
ret
AsmWriteMsr64 ENDP