diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-25 10:05:26 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-25 10:05:26 +0000 |
commit | b7089db12047675e829a74674700b03406c432e6 (patch) | |
tree | 2b8db83dac416cf6a15e1cf7ded7d802348cbc68 /MdePkg/Library/BaseMemoryLibSse2/Ia32 | |
parent | 1a0d7262b42e2eb283a2927fbc5cff71248a8473 (diff) | |
download | edk2-platforms-b7089db12047675e829a74674700b03406c432e6.tar.xz |
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
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibSse2/Ia32')
11 files changed, 25 insertions, 25 deletions
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S index 7901b82a44..725367b2f9 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemCompareMem +.globl _InternalMemCompareMem #------------------------------------------------------------------------------ # INTN diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S index 9ef9286051..ddbcbaf1b1 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S @@ -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 diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S index 1e83064573..5e65b9667a 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem16 +.globl _InternalMemScanMem16 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S index b7b93d9c0c..5d46ed2bc1 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem32 +.globl _InternalMemScanMem32 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S index 6bbb18a334..3ba69650ab 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem64 +.globl _InternalMemScanMem64 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S index fe678fac26..7a834a5635 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem8 +.globl _InternalMemScanMem8 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S index d73ebfb710..86bba889f2 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S @@ -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 diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S index 21e3935b99..8ec96a9b6c 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S @@ -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 diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S index b6823ad125..f91169a6e0 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S @@ -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 diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S index 1f9e2f63a3..ef9918f0f9 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S @@ -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:
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S index f57276091f..8b4157f741 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S @@ -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 |