summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/ReadCs.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/ReadCs.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/ReadCs.S12
1 files changed, 3 insertions, 9 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCs.S b/MdePkg/Library/BaseLib/Ia32/ReadCs.S
index 66bf4b9eeb..97d76066b0 100644
--- a/MdePkg/Library/BaseLib/Ia32/ReadCs.S
+++ b/MdePkg/Library/BaseLib/Ia32/ReadCs.S
@@ -21,9 +21,7 @@
#
#------------------------------------------------------------------------------
-
-
-
+.global _AsmReadCs
#------------------------------------------------------------------------------
# UINT16
@@ -32,10 +30,6 @@
# VOID
# );
#------------------------------------------------------------------------------
-.global _AsmReadCs
-_AsmReadCs:
- movw %cs,%ax
+_AsmReadCs:
+ movl %cs, %eax
ret
-
-
-