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
This commit is contained in:
Gao, Liming 2014-08-11 07:05:49 +00:00 committed by lgao4
parent 31122d8c9a
commit 1be8039054
13 changed files with 14 additions and 14 deletions

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.686:
.code: .code:
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -37,7 +37,7 @@ ASM_PFX(InternalMathDivRemU64x64):
jnz Hard # call _@DivRemU64x64 if Divisor > 2^32 jnz Hard # call _@DivRemU64x64 if Divisor > 2^32
movl 20(%esp), %ecx movl 20(%esp), %ecx
jecxz L1 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 movl %ecx, 16(%esp) # set up stack frame to match DivRemU64x32
L1: L1:
jmp ASM_PFX(InternalMathDivRemU64x32) jmp ASM_PFX(InternalMathDivRemU64x32)

View File

@ -58,6 +58,6 @@ LongStart: # long mode starts here
.byte 0x67, 0x48 .byte 0x67, 0x48
movl 0x18(%esp), %esp # mov rsp, [esp + 18h] movl 0x18(%esp), %esp # mov rsp, [esp + 18h]
.byte 0x48 .byte 0x48
addl $0x-0x20, %esp # add rsp, -20h addl $-0x20, %esp # add rsp, -20h
call *%ebx # call rbx call *%ebx # call rbx
jmp . # no one should get here jmp . # no one should get here

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.386:
.code: .code:
ASM_GLOBAL ASM_PFX(InternalMathMultU64x32) ASM_GLOBAL ASM_PFX(InternalMathMultU64x32)

View File

@ -19,7 +19,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.686:
.code: .code:
ASM_GLOBAL ASM_PFX(InternalMathRShiftU64) ASM_GLOBAL ASM_PFX(InternalMathRShiftU64)

View File

@ -43,7 +43,7 @@ ASM_PFX(InternalMemSetMem):
andl $7, %edx andl $7, %edx
shrl $3, %ecx # # of Qwords to set shrl $3, %ecx # # of Qwords to set
jz L1 jz L1
addl $0x-10, %esp addl $-16, %esp
movq %mm0, (%esp) # save mm0 movq %mm0, (%esp) # save mm0
movq %mm1, 8(%esp) # save mm1 movq %mm1, 8(%esp) # save mm1
movd %eax, %mm0 movd %eax, %mm0
@ -53,7 +53,7 @@ ASM_PFX(InternalMemSetMem):
L0: L0:
movq %mm0, (%edi) movq %mm0, (%edi)
addl $8, %edi addl $8, %edi
loopl L0 loop L0
movq (%esp), %mm0 # restore mm0 movq (%esp), %mm0 # restore mm0
movq 8(%esp), %mm1 # restore mm1 movq 8(%esp), %mm1 # restore mm1
addl $0x10, %esp # stack cleanup addl $0x10, %esp # stack cleanup

View File

@ -49,7 +49,7 @@ ASM_PFX(InternalMemSetMem16):
L0: L0:
movq %mm0, (%edi) movq %mm0, (%edi)
addl $8, %edi addl $8, %edi
loopl L0 loop L0
L1: L1:
movl %edx, %ecx movl %edx, %ecx
rep rep

View File

@ -44,7 +44,7 @@ ASM_PFX(InternalMemSetMem32):
L0: L0:
movq %mm0, (%edx) movq %mm0, (%edx)
lea 8(%edx), %edx lea 8(%edx), %edx
loopl L0 loop L0
L1: L1:
jnc L2 jnc L2
movd %mm0, (%edx) movd %mm0, (%edx)

View File

@ -39,5 +39,5 @@ ASM_PFX(InternalMemSetMem64):
L0: L0:
movq %mm0, (%edx) movq %mm0, (%edx)
lea 8(%edx), %edx lea 8(%edx), %edx
loopl L0 loop L0
ret ret

View File

@ -36,7 +36,7 @@
ASM_GLOBAL ASM_PFX(InternalMemSetMem64) ASM_GLOBAL ASM_PFX(InternalMemSetMem64)
ASM_PFX(InternalMemSetMem64): ASM_PFX(InternalMemSetMem64):
movd %r8, %mm0 #Value movd %r8, %mm0 #Value
movw %rcx, %rax #rax <- Buffer movq %rcx, %rax #rax <- Buffer
xchg %rdx, %rcx #rcx <- Count xchg %rdx, %rcx #rcx <- Count
L0: L0:
movntq %mm0, (%rdx) movntq %mm0, (%rdx)

View File

@ -40,7 +40,7 @@ ASM_PFX(InternalMemSetMem64):
movq %r8, %rax movq %r8, %rax
xchgq %rdx, %rcx xchgq %rdx, %rcx
rep stosq rep stosq
movw %rdx, %rax movq %rdx, %rax
popq %rdi popq %rdi
ret ret

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.386:
.code: .code:
ASM_GLOBAL ASM_PFX(InternalMemSetMem) ASM_GLOBAL ASM_PFX(InternalMemSetMem)

View File

@ -21,7 +21,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.686:
#.MODEL flat,C #.MODEL flat,C
.xmm: .xmm:
.code: .code: