sync GCC assembly files with MASM assembly files

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@878 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2006-07-11 10:25:13 +00:00
parent 983ba75c92
commit bd0cd44be5
20 changed files with 82 additions and 90 deletions

View File

@@ -15,7 +15,7 @@
#
# Abstract:
#
# InterlockedCompareExchange32 function
# InternalSyncCompareExchange32 function
#
# Notes:
#
@@ -25,35 +25,17 @@
#------------------------------------------------------------------------------
# VOID *
# EFIAPI
# InterlockedCompareExchangePointer (
# IN VOID **Value,
# IN VOID *CompareValue,
# IN VOID *ExchangeValue
# );
#------------------------------------------------------------------------------
.global _InterlockedCompareExchangePointer
_InterlockedCompareExchangePointer:
#
# InterlockedCompareExchangePointer() shares the same code as
# InterlockedCompareExchange32() on IA32 and thus no code inside this
# function
#
#------------------------------------------------------------------------------
# UINT32
# EFIAPI
# InterlockedCompareExchange32 (
# InternalSyncCompareExchange32 (
# IN UINT32 *Value,
# IN UINT32 CompareValue,
# IN UINT32 ExchangeValue
# );
#------------------------------------------------------------------------------
.global _InterlockedCompareExchange32
_InterlockedCompareExchange32:
.global _InternalSyncCompareExchange32
_InternalSyncCompareExchange32:
movl 4(%esp),%ecx
movl 8(%esp),%eax
movl 12(%esp),%edx