X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FInterlockedCompareExchange32.S;h=a0a6ad9eb070aecabda8e4e226df57f4b3002e9c;hb=a2b1bf96b3470f5eb82b47e629f6c3a840f87295;hp=43bb92526eb2fafb1664430fa05f11526fb502f1;hpb=975201130c7223ef29be7a28500ed107623fc4be;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/InterlockedCompareExchange32.S b/MdePkg/Library/BaseLib/Ia32/InterlockedCompareExchange32.S index 43bb92526e..a0a6ad9eb0 100644 --- a/MdePkg/Library/BaseLib/Ia32/InterlockedCompareExchange32.S +++ b/MdePkg/Library/BaseLib/Ia32/InterlockedCompareExchange32.S @@ -15,50 +15,27 @@ # # Abstract: # -# InterlockedCompareExchange32 function +# InternalSyncCompareExchange32 function # # Notes: # #------------------------------------------------------------------------------ - - - - -#------------------------------------------------------------------------------ -# 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 - # - +.globl ASM_PFX(InternalSyncCompareExchange32) #------------------------------------------------------------------------------ # UINT32 # EFIAPI -# InterlockedCompareExchange32 ( +# InternalSyncCompareExchange32 ( # IN UINT32 *Value, # IN UINT32 CompareValue, # IN UINT32 ExchangeValue # ); #------------------------------------------------------------------------------ -.global _InterlockedCompareExchange32 -_InterlockedCompareExchange32: - movl 4(%esp),%ecx - movl 8(%esp),%eax - movl 12(%esp),%edx - lock cmpxchgl %edx,(%ecx) +ASM_PFX(InternalSyncCompareExchange32): + movl 4(%esp), %ecx + movl 8(%esp), %eax + movl 12(%esp), %edx + lock + cmpxchgl %edx, (%ecx) ret - - -