From b7089db12047675e829a74674700b03406c432e6 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 25 Sep 2006 10:05:26 +0000 Subject: 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 --- MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S | 12 ++++++------ MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S | 2 +- MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S | 6 +++--- 11 files changed, 18 insertions(+), 18 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibMmx') diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S index 7901b82a44..725367b2f9 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemCompareMem +.globl _InternalMemCompareMem #------------------------------------------------------------------------------ # INTN diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S index d644b34675..349356fb1f 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/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 %esi, %ecx @@ -57,7 +57,7 @@ L1: movl %edx, %ecx andl $7, %edx shrl $3, %ecx # ecx <- # of Qwords to copy - jz @CopyBytes + jz L_CopyBytes pushl %eax pushl %eax movq %mm0, (%esp) # save mm0 @@ -70,12 +70,12 @@ L2: movq (%esp), %mm0 # restore mm0 popl %ecx # stack cleanup popl %ecx # 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/BaseMemoryLibMmx/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S index 1e83064573..5e65b9667a 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem16 +.globl _InternalMemScanMem16 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S index b7b93d9c0c..5d46ed2bc1 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem32 +.globl _InternalMemScanMem32 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S index 6bbb18a334..3ba69650ab 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem64 +.globl _InternalMemScanMem64 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S index fe678fac26..7a834a5635 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S @@ -27,7 +27,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemScanMem8 +.globl _InternalMemScanMem8 #------------------------------------------------------------------------------ # CONST VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S index 4e93915caa..96fb48eedc 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemSetMem +.globl _InternalMemSetMem #------------------------------------------------------------------------------ # VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S index 9898d28f98..9dece46b02 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemSetMem16 +.globl _InternalMemSetMem16 #------------------------------------------------------------------------------ # VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S index 8281652ad9..7505ea53d3 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemSetMem32 +.globl _InternalMemSetMem32 #------------------------------------------------------------------------------ # VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S index 5eef027e57..8c12c421dc 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemSetMem64 +.globl _InternalMemSetMem64 #------------------------------------------------------------------------------ # VOID * diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S index f51ce8f98e..8c52a3c950 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ -.global _InternalMemZeroMem +.globl _InternalMemZeroMem #------------------------------------------------------------------------------ # VOID * @@ -37,13 +37,13 @@ _InternalMemZeroMem: movl 12(%esp), %ecx movl %ecx, %edx shrl $3, %ecx - jz @ZeroBytes + jz L_ZeroBytes pxor %mm0, %mm0 L0: movq %mm0, (%edi) addl $8, %edi loop L0 -@ZeroBytes: +L_ZeroBytes: andl $7, %edx xorl %eax, %eax movl %edx, %ecx -- cgit v1.2.3