]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/InterlockedCompareExchange64.S
Split out Synchronization Library from Base Library
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / InterlockedCompareExchange64.S
index 383503fbfe985aacf22b46d33eca103e35bff2d6..03aebff91d75531e143516d2a2edcae6faa9d30a 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\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
@@ -11,7 +11,7 @@
 #\r
 # Module Name:\r
 #\r
-#   InterlockedCompareExchange64.Asm\r
+#   InterlockedCompareExchange64.S\r
 #\r
 # Abstract:\r
 #\r
@@ -21,9 +21,7 @@
 #\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