#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006, Intel Corporation\r
+# Copyright (c) 2006 - 2008, Intel Corporation\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
#\r
# Module Name:\r
#\r
-# InterlockedCompareExchange64.Asm\r
+# InterlockedCompareExchange64.S\r
#\r
# Abstract:\r
#\r
#\r
#------------------------------------------------------------------------------\r
\r
-\r
-\r
- \r
+.globl ASM_PFX(InternalSyncCompareExchange64)\r
\r
#------------------------------------------------------------------------------\r
# UINT64\r
# IN UINT64 ExchangeValue\r
# );\r
#------------------------------------------------------------------------------\r
-.global _InternalSyncCompareExchange64\r
-_InternalSyncCompareExchange64:\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