1. Remove .extern from GCC assembly.

2. Define macro for .global/.globl in GCC assembly.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8344 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2009-05-20 09:42:59 +00:00
parent dedfc3bbc9
commit d5172f911d
89 changed files with 107 additions and 98 deletions

View File

@@ -30,7 +30,7 @@
# IN UINT32 ExchangeValue
# );
#------------------------------------------------------------------------------
.global ASM_PFX(InternalSyncCompareExchange32)
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange32)
ASM_PFX(InternalSyncCompareExchange32):
mov %edx, %eax
lock cmpxchg %r8d, (%rcx)

View File

@@ -31,7 +31,7 @@
# IN UINT64 ExchangeValue
# );
#------------------------------------------------------------------------------
.global ASM_PFX(InternalSyncCompareExchange64)
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange64)
.align 16
ASM_PFX(InternalSyncCompareExchange64):
mov %rdx, %rax

View File

@@ -29,7 +29,7 @@
# IN UINT32 *Value
# );
#------------------------------------------------------------------------------
.global ASM_PFX(InternalSyncDecrement)
ASM_GLOBAL ASM_PFX(InternalSyncDecrement)
ASM_PFX(InternalSyncDecrement):
lock decl (%rcx)
mov (%rcx), %eax

View File

@@ -29,7 +29,7 @@
# IN UINT32 *Value
# );
#------------------------------------------------------------------------------
.global ASM_PFX(InternalSyncIncrement)
ASM_GLOBAL ASM_PFX(InternalSyncIncrement)
ASM_PFX(InternalSyncIncrement):
lock incl (%rcx)
mov (%rcx), %eax