#\r
# Abstract:\r
#\r
-# InterlockedCompareExchange64 function\r
+# InternalSyncCompareExchange64 function\r
#\r
# Notes:\r
#\r
#------------------------------------------------------------------------------\r
\r
-\r
-\r
- \r
+.globl ASM_PFX(InternalSyncCompareExchange64)\r
\r
#------------------------------------------------------------------------------\r
# UINT64\r
# EFIAPI\r
-# InterlockedCompareExchange64 (\r
+# InternalSyncCompareExchange64 (\r
# IN UINT64 *Value,\r
# IN UINT64 CompareValue,\r
# IN UINT64 ExchangeValue\r
# );\r
#------------------------------------------------------------------------------\r
-.global _InterlockedCompareExchange64\r
+ASM_PFX(InternalSyncCompareExchange64):\r
push %esi\r
push %ebx\r
- movl 12(%esp),%esi\r
- movl 16(%esp),%eax\r
- movl 20(%esp),%edx\r
- movl 24(%esp),%ebx\r
- movl 28(%esp),%ecx\r
- lock \r
+ movl 12(%esp), %esi\r
+ movl 16(%esp), %eax\r
+ movl 20(%esp), %edx\r
+ movl 24(%esp), %ebx\r
+ movl 28(%esp), %ecx\r
+ lock\r
cmpxchg8b (%esi)\r
pop %ebx\r
pop %esi\r
ret\r
-\r
-\r
-\r