summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32
diff options
context:
space:
mode:
authorGao, Liming <liming.gao@intel.com>2014-08-11 07:05:49 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-11 07:05:49 +0000
commit1be8039054d81cd5e5f602a6f3cd13a062cc2900 (patch)
tree619b29b40a4279154026f184c4f82a2fa5cb2185 /MdePkg/Library/BaseLib/Ia32
parent31122d8c9ac34b8936cf09649cad6a8cbc93bbb9 (diff)
downloadedk2-platforms-1be8039054d81cd5e5f602a6f3cd13a062cc2900.tar.xz
MdePkg: Fix Clang build failure
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming <liming.gao@intel.com> Reviewed-by: Andrew Fish <afish@apple.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15784 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/CpuIdEx.S2
-rw-r--r--MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.S2
-rw-r--r--MdePkg/Library/BaseLib/Ia32/EnablePaging64.S2
-rw-r--r--MdePkg/Library/BaseLib/Ia32/MultU64x32.S2
-rw-r--r--MdePkg/Library/BaseLib/Ia32/RShiftU64.S2
5 files changed, 5 insertions, 5 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S
index 67b54926d6..0d34c56162 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S
+++ b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
- .686:
+
.code:
#------------------------------------------------------------------------------
diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.S b/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.S
index 44fedc0ffb..f4df094195 100644
--- a/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.S
+++ b/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.S
@@ -37,7 +37,7 @@ ASM_PFX(InternalMathDivRemU64x64):
jnz Hard # call _@DivRemU64x64 if Divisor > 2^32
movl 20(%esp), %ecx
jecxz L1
- and $0, 4(%ecx) # zero high dword of remainder
+ andl $0, 4(%ecx) # zero high dword of remainder
movl %ecx, 16(%esp) # set up stack frame to match DivRemU64x32
L1:
jmp ASM_PFX(InternalMathDivRemU64x32)
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S
index 3adf55a08a..08950ce0e2 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S
+++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S
@@ -58,6 +58,6 @@ LongStart: # long mode starts here
.byte 0x67, 0x48
movl 0x18(%esp), %esp # mov rsp, [esp + 18h]
.byte 0x48
- addl $0x-0x20, %esp # add rsp, -20h
+ addl $-0x20, %esp # add rsp, -20h
call *%ebx # call rbx
jmp . # no one should get here
diff --git a/MdePkg/Library/BaseLib/Ia32/MultU64x32.S b/MdePkg/Library/BaseLib/Ia32/MultU64x32.S
index b74fbfc4f2..8e3f6f5560 100644
--- a/MdePkg/Library/BaseLib/Ia32/MultU64x32.S
+++ b/MdePkg/Library/BaseLib/Ia32/MultU64x32.S
@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
- .386:
+
.code:
ASM_GLOBAL ASM_PFX(InternalMathMultU64x32)
diff --git a/MdePkg/Library/BaseLib/Ia32/RShiftU64.S b/MdePkg/Library/BaseLib/Ia32/RShiftU64.S
index c12489ff45..17cdedb212 100644
--- a/MdePkg/Library/BaseLib/Ia32/RShiftU64.S
+++ b/MdePkg/Library/BaseLib/Ia32/RShiftU64.S
@@ -19,7 +19,7 @@
#
#------------------------------------------------------------------------------
- .686:
+
.code:
ASM_GLOBAL ASM_PFX(InternalMathRShiftU64)