cleanup the .S file to wrap all public symbols with ASM_PFX() macro,which is used to generate underscore prior to public symbol or not within various GCC distribution versions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8316 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-05-15 03:21:08 +00:00
parent 44c0fd78ef
commit d3c0cbcecc
33 changed files with 66 additions and 66 deletions

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCompareMem
.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
_InternalMemCompareMem:
ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCopyMem
.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemCopyMem:
ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem16
.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem16:
ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem32
.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem32:
ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem64
.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem64:
ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem8
.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem8:
ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem
.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT8 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem:
ASM_PFX(InternalMemSetMem):
push %edi
movb 16(%esp), %al
movb %al, %ah

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem16
.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem16:
ASM_PFX(InternalMemSetMem16):
push %edi
movl 16(%esp), %eax
shrdl $16, %eax, %edx

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem32
.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT32 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem32:
ASM_PFX(InternalMemSetMem32):
movl 4(%esp), %eax
movl 8(%esp), %ecx
movd 12(%esp), %mm0

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem64
.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT64 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem64:
ASM_PFX(InternalMemSetMem64):
movl 4(%esp), %eax
movl 8(%esp), %ecx
movq 12(%esp), %mm0

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemZeroMem
.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemZeroMem:
ASM_PFX(InternalMemZeroMem):
push %edi
movl 8(%esp), %edi
movl 12(%esp), %ecx

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCompareMem
.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
_InternalMemCompareMem:
ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCopyMem
.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemCopyMem:
ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem16
.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem16:
ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem32
.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem32:
ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem64
.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem64:
ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem8
.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem8:
ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -24,7 +24,7 @@
.386:
.code:
.globl _InternalMemSetMem
.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
# VOID *
@ -34,7 +34,7 @@
# IN UINT8 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem:
ASM_PFX(InternalMemSetMem):
push %edi
movl 16(%esp),%eax
movl 8(%esp),%edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem16
.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem16:
ASM_PFX(InternalMemSetMem16):
push %edi
movl 16(%esp), %eax
movl 8(%esp), %edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem32
.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT32 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem32:
ASM_PFX(InternalMemSetMem32):
push %edi
movl 16(%esp),%eax
movl 8(%esp),%edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem64
.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINT64 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem64:
ASM_PFX(InternalMemSetMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemZeroMem
.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@ -30,7 +30,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemZeroMem:
ASM_PFX(InternalMemZeroMem):
push %edi
xorl %eax,%eax
movl 8(%esp),%edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCompareMem
.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
_InternalMemCompareMem:
ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemCopyMem
.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemCopyMem:
ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem16
.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem16:
ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem32
.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem32:
ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem64
.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem64:
ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax

View File

@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemScanMem8
.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
_InternalMemScanMem8:
ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi

View File

@ -34,8 +34,8 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
.globl _InternalMemSetMem
_InternalMemSetMem:
.globl ASM_PFX(InternalMemSetMem)
ASM_PFX(InternalMemSetMem):
push %edi
movl 12(%esp), %edx # edx <- Count
movl 8(%esp), %edi # edi <- Buffer

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem16
.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem16:
ASM_PFX(InternalMemSetMem16):
push %edi
movl 12(%esp), %edx
movl 8(%esp), %edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem32
.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
_InternalMemSetMem32:
ASM_PFX(InternalMemSetMem32):
push %edi
movl 12(%esp), %edx
movl 8(%esp), %edi

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemSetMem64
.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@ -32,7 +32,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
_InternalMemSetMem64:
ASM_PFX(InternalMemSetMem64):
movl 4(%esp), %eax
movl 8(%esp), %ecx
testb $8, %al

View File

@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
.globl _InternalMemZeroMem
.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@ -31,7 +31,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
_InternalMemZeroMem:
ASM_PFX(InternalMemZeroMem):
push %edi
movl 8(%esp), %edi
movl 12(%esp), %edx