summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/X86Msr.c
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 02:59:41 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 02:59:41 +0000
commit2fc60b703842994beb1d78f9221deca7d81d9159 (patch)
tree71aecf73de4ec34c7f638ec43542be90d9e85b83 /MdePkg/Library/BaseLib/X86Msr.c
parentfca1cc7199b5abcba465d51ac6f265b2253d68dd (diff)
downloadedk2-platforms-2fc60b703842994beb1d78f9221deca7d81d9159.tar.xz
Synchronize BaseLib h files to c files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6983 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/X86Msr.c')
-rw-r--r--MdePkg/Library/BaseLib/X86Msr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/X86Msr.c b/MdePkg/Library/BaseLib/X86Msr.c
index 612b29c0e6..410ab2eb9e 100644
--- a/MdePkg/Library/BaseLib/X86Msr.c
+++ b/MdePkg/Library/BaseLib/X86Msr.c
@@ -40,7 +40,8 @@ AsmReadMsr32 (
}
/**
- Zero-extend a 32-bit value and writes it to a Machine Specific Register(MSR).
+ Writes a 32-bit value to a Machine Specific Register(MSR), and returns the value.
+ The upper 32-bits of the MSR are set to zero.
Writes the 32-bit value specified by Value to the MSR specified by Index. The
upper 32-bits of the MSR write are set to zero. The 32-bit value written to
@@ -192,7 +193,7 @@ AsmMsrBitFieldRead32 (
/**
Writes a bit field to an MSR.
- Writes Value to a bit field in the lower 32-bits of a 64-bit MSR. The bit
+ Writes Value to a bit field in the lower 32-bits of a 64-bit MSR. The bit
field is specified by the StartBit and the EndBit. All other bits in the
destination MSR are preserved. The lower 32-bits of the MSR written is
returned. The caller must either guarantee that Index and the data written
@@ -464,7 +465,7 @@ AsmMsrAndThenOr64 (
@param EndBit The ordinal of the most significant bit in the bit field.
Range 0..63.
- @return The value written back to the MSR.
+ @return The value read from the MSR.
**/
UINT64