summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/ReadCs.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/ReadCs.c')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/ReadCs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCs.c b/MdePkg/Library/BaseLib/Ia32/ReadCs.c
index cd9bad54e7..86c7257158 100644
--- a/MdePkg/Library/BaseLib/Ia32/ReadCs.c
+++ b/MdePkg/Library/BaseLib/Ia32/ReadCs.c
@@ -17,6 +17,15 @@
//
+/**
+ Reads the current value of Code Segment Register (CS).
+
+ Reads and returns the current value of CS. This function is only available on
+ IA-32 and X64.
+
+ @return The current value of CS.
+
+**/
UINT16
EFIAPI
AsmReadCs (