summaryrefslogtreecommitdiff
path: root/OvmfPkg/XenBusDxe/X64
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2014-11-08 02:41:35 +0000
committerjljusten <jljusten@Edk2>2014-11-08 02:41:35 +0000
commit6f6c3a1fb628be2b8fb68add9f166d8fa51a9c70 (patch)
tree91532fe380d295d0afbfbf0bec983db32718ee33 /OvmfPkg/XenBusDxe/X64
parent0ae9d5e88e6fbffdcf2103ec0d54eac0f7295428 (diff)
downloadedk2-platforms-6f6c3a1fb628be2b8fb68add9f166d8fa51a9c70.tar.xz
OvmfPkg XenBusDxe: Convert X64/TestAndClearBit.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/TestAndClearBit.asm to X64/TestAndClearBit.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@16319 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe/X64')
-rw-r--r--OvmfPkg/XenBusDxe/X64/TestAndClearBit.S12
-rw-r--r--OvmfPkg/XenBusDxe/X64/TestAndClearBit.nasm (renamed from OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm)8
2 files changed, 4 insertions, 16 deletions
diff --git a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S
deleted file mode 100644
index 0372e83bdd..0000000000
--- a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S
+++ /dev/null
@@ -1,12 +0,0 @@
-# INT32
-# EFIAPI
-# TestAndClearBit (
-# IN INT32 Bit, // rcx
-# IN volatile VOID* Address // rdx
-# );
-ASM_GLOBAL ASM_PFX(TestAndClearBit)
-ASM_PFX(TestAndClearBit):
- lock
- btrl %ecx, (%rdx)
- sbbl %eax, %eax
- ret
diff --git a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.nasm
index 3a2587913e..38ac5490cb 100644
--- a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm
+++ b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.nasm
@@ -1,4 +1,5 @@
-.code
+DEFAULT REL
+SECTION .text
; INT32
; EFIAPI
@@ -6,11 +7,10 @@
; IN INT32 Bit, // rcx
; IN volatile VOID* Address // rdx
; );
-TestAndClearBit PROC
+global ASM_PFX(TestAndClearBit)
+ASM_PFX(TestAndClearBit):
lock
btr [rdx], ecx
sbb eax, eax
ret
-TestAndClearBit ENDP
-END