summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2014-11-08 02:41:28 +0000
committerjljusten <jljusten@Edk2>2014-11-08 02:41:28 +0000
commit0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428 (patch)
tree86f37a52ea748cdf9b35aa7b0881e6a0853a3170 /OvmfPkg/XenBusDxe
parent60aafa1bdee040c366da84f58a660df505fbff92 (diff)
downloadedk2-0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428.tar.gz
edk2-0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428.tar.bz2
edk2-0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428.zip
OvmfPkg XenBusDxe: Convert X64/InterlockedCompareExchange16.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/InterlockedCompareExchange16.asm to X64/InterlockedCompareExchange16.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16318 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe')
-rw-r--r--OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.S13
-rw-r--r--OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.nasm (renamed from OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.asm)8
-rw-r--r--OvmfPkg/XenBusDxe/XenBusDxe.inf3
3 files changed, 5 insertions, 19 deletions
diff --git a/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.S b/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.S
deleted file mode 100644
index 23e08f3f6e..0000000000
--- a/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.S
+++ /dev/null
@@ -1,13 +0,0 @@
-# UINT16
-# EFIAPI
-# InternalSyncCompareExchange16 (
-# IN volatile UINT16 *Value,
-# IN UINT16 CompareValue,
-# IN UINT16 ExchangeValue
-# );
-ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange16)
-ASM_PFX(InternalSyncCompareExchange16):
- mov %edx, %eax
- lock
- cmpxchgw %r8w, (%rcx)
- ret
diff --git a/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.asm b/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.nasm
index b23e421abc..048d1f32f6 100644
--- a/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.asm
+++ b/OvmfPkg/XenBusDxe/X64/InterlockedCompareExchange16.nasm
@@ -21,7 +21,8 @@
;
;------------------------------------------------------------------------------
- .code
+ DEFAULT REL
+ SECTION .text
;------------------------------------------------------------------------------
; UINT16
@@ -32,10 +33,9 @@
; IN UINT16 ExchangeValue
; );
;------------------------------------------------------------------------------
-InternalSyncCompareExchange16 PROC
+global ASM_PFX(InternalSyncCompareExchange16)
+ASM_PFX(InternalSyncCompareExchange16):
mov eax, edx
lock cmpxchg [rcx], r8w
ret
-InternalSyncCompareExchange16 ENDP
- END
diff --git a/OvmfPkg/XenBusDxe/XenBusDxe.inf b/OvmfPkg/XenBusDxe/XenBusDxe.inf
index 3309f53f6b..61f7568e55 100644
--- a/OvmfPkg/XenBusDxe/XenBusDxe.inf
+++ b/OvmfPkg/XenBusDxe/XenBusDxe.inf
@@ -55,8 +55,7 @@
[Sources.X64]
X64/hypercall.nasm
- X64/InterlockedCompareExchange16.S
- X64/InterlockedCompareExchange16.asm
+ X64/InterlockedCompareExchange16.nasm
X64/TestAndClearBit.S
X64/TestAndClearBit.asm