1.Fix .global issue in GAS (EdkT207).

2.Fix Label start with @ (EdkT208).

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2006-09-25 10:05:26 +00:00
parent 1a0d7262b4
commit b7089db120
130 changed files with 168 additions and 168 deletions

View File

@@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemCompareMem
.globl _InternalMemCompareMem
#------------------------------------------------------------------------------
# INTN

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemCopyMem
.globl _InternalMemCopyMem
#------------------------------------------------------------------------------
# VOID *
@@ -42,7 +42,7 @@ _InternalMemCopyMem:
cmpl %edi, %esi
jae L0
cmpl %edi, %eax # Overlapped?
jae @CopyBackward # Copy backward if overlapped
jae L_CopyBackward # Copy backward if overlapped
L0:
xorl %ecx, %ecx
subl %edi, %ecx
@@ -57,7 +57,7 @@ L1:
movl %edx, %ecx
andl $15, %edx
shrl $4, %ecx # ecx <- # of DQwords to copy
jz @CopyBytes
jz L_CopyBytes
addl $-16, %esp
movdqu %xmm0, (%esp)
L2:
@@ -69,12 +69,12 @@ L2:
mfence
movdqu (%esp),%xmm0
addl $16, %esp # stack cleanup
jmp @CopyBytes
@CopyBackward:
jmp L_CopyBytes
L_CopyBackward:
movl %eax, %esi # esi <- Last byte in Source
leal -1(%edi,%edx,), %edi # edi <- Last byte in Destination
std
@CopyBytes:
L_CopyBytes:
movl %edx, %ecx
rep
movsb

View File

@@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemScanMem16
.globl _InternalMemScanMem16
#------------------------------------------------------------------------------
# CONST VOID *

View File

@@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemScanMem32
.globl _InternalMemScanMem32
#------------------------------------------------------------------------------
# CONST VOID *

View File

@@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemScanMem64
.globl _InternalMemScanMem64
#------------------------------------------------------------------------------
# CONST VOID *

View File

@@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemScanMem8
.globl _InternalMemScanMem8
#------------------------------------------------------------------------------
# CONST VOID *

View File

@@ -34,7 +34,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
.global _InternalMemSetMem
.globl _InternalMemSetMem
_InternalMemSetMem:
push %edi
movl 12(%esp), %edx # edx <- Count
@@ -53,7 +53,7 @@ L0:
movl %edx, %ecx
andl $15, %edx
shrl $4, %ecx # ecx <- # of DQwords to set
jz @SetBytes
jz L_SetBytes
movb %al, %ah # ax <- Value | (Value << 8)
addl $-16, %esp
movdqu %xmm0, (%esp)
@@ -67,7 +67,7 @@ L1:
mfence
movdqu (%esp), %xmm0
addl $16, %esp # stack cleanup
@SetBytes:
L_SetBytes:
movl %edx, %ecx
rep
stosb

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemSetMem16
.globl _InternalMemSetMem16
#------------------------------------------------------------------------------
# VOID *
@@ -51,7 +51,7 @@ L0:
movl %edx, %ecx
andl $7, %edx
shrl $3, %ecx
jz @SetWords
jz L_SetWords
movd %eax, %xmm0
pshuflw $0, %xmm0, %xmm0
movlhps %xmm0, %xmm0
@@ -60,7 +60,7 @@ L1:
addl $16, %edi
loop L1
mfence
@SetWords:
L_SetWords:
movl %edx, %ecx
rep
stosw

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemSetMem32
.globl _InternalMemSetMem32
#------------------------------------------------------------------------------
# VOID *
@@ -51,7 +51,7 @@ L0:
movl %edx, %ecx
andl $3, %edx
shrl $2, %ecx
jz @SetDwords
jz L_SetDwords
movd %eax, %xmm0
pshufd $0, %xmm0, %xmm0
L1:
@@ -59,7 +59,7 @@ L1:
addl $16, %edi
loop L1
mfence
@SetDwords:
L_SetDwords:
movl %edx, %ecx
rep
stosl

View File

@@ -44,14 +44,14 @@ _InternalMemSetMem64:
decl %ecx
L1:
shrl %ecx
jz @SetQwords
jz L_SetQwords
movlhps %xmm0, %xmm0
L2:
movntdq %xmm0, (%edx)
leal 16(%edx), %edx
loop L2
mfence
@SetQwords:
L_SetQwords:
jnc L3
movq %xmm0, (%edx)
L3:

View File

@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.global _InternalMemZeroMem
.globl _InternalMemZeroMem
#------------------------------------------------------------------------------
# VOID *
@@ -49,14 +49,14 @@ L0:
movl %edx, %ecx
andl $15, %edx
shrl $4, %ecx
jz @ZeroBytes
jz L_ZeroBytes
pxor %xmm0, %xmm0
L1:
movntdq %xmm0, (%edi)
addl $16, %edi
loop L1
mfence
@ZeroBytes:
L_ZeroBytes:
movl %edx, %ecx
rep
stosb