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:
@@ -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)
|
||||
|
@@ -31,7 +31,7 @@
|
||||
# IN UINT64 ExchangeValue
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
.global ASM_PFX(InternalSyncCompareExchange64)
|
||||
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange64)
|
||||
.align 16
|
||||
ASM_PFX(InternalSyncCompareExchange64):
|
||||
mov %rdx, %rax
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user