From 31c0aa2fd09b9ca7764ae43458d379995baa8637 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Sat, 8 Nov 2014 02:41:07 +0000 Subject: OvmfPkg XenBusDxe: Convert Ia32/TestAndClearBit.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/TestAndClearBit.asm to Ia32/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16316 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S | 13 ------------- OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm | 17 ----------------- OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.nasm | 16 ++++++++++++++++ OvmfPkg/XenBusDxe/XenBusDxe.inf | 3 +-- 4 files changed, 17 insertions(+), 32 deletions(-) delete mode 100644 OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S delete mode 100644 OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm create mode 100644 OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.nasm (limited to 'OvmfPkg/XenBusDxe') diff --git a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S deleted file mode 100644 index 58dfa8ba57..0000000000 --- a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S +++ /dev/null @@ -1,13 +0,0 @@ -# INT32 -# EFIAPI -# TestAndClearBit ( -# IN INT32 Bit, -# IN volatile VOID* Address -# ); -ASM_GLOBAL ASM_PFX(TestAndClearBit) -ASM_PFX(TestAndClearBit): - mov 4(%esp), %ecx - mov 8(%esp), %edx - lock btrl %ecx, (%edx) - sbbl %eax, %eax - ret diff --git a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm deleted file mode 100644 index ac809020a6..0000000000 --- a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm +++ /dev/null @@ -1,17 +0,0 @@ -.code - -; INT32 -; EFIAPI -; TestAndClearBit ( -; IN INT32 Bit, -; IN volatile VOID* Address -; ); -TestAndClearBit PROC - mov ecx, [esp + 4] - mov edx, [esp + 8] - lock btr [edx], ecx - sbb eax, eax - ret -TestAndClearBit ENDP - -END diff --git a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.nasm b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.nasm new file mode 100644 index 0000000000..d77f74ef24 --- /dev/null +++ b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.nasm @@ -0,0 +1,16 @@ +SECTION .text + +; INT32 +; EFIAPI +; TestAndClearBit ( +; IN INT32 Bit, +; IN volatile VOID* Address +; ); +global ASM_PFX(TestAndClearBit) +ASM_PFX(TestAndClearBit): + mov ecx, [esp + 4] + mov edx, [esp + 8] + lock btr [edx], ecx + sbb eax, eax + ret + diff --git a/OvmfPkg/XenBusDxe/XenBusDxe.inf b/OvmfPkg/XenBusDxe/XenBusDxe.inf index 292e488387..b421b852e8 100644 --- a/OvmfPkg/XenBusDxe/XenBusDxe.inf +++ b/OvmfPkg/XenBusDxe/XenBusDxe.inf @@ -51,8 +51,7 @@ [Sources.IA32] Ia32/hypercall.nasm Ia32/InterlockedCompareExchange16.nasm - Ia32/TestAndClearBit.S - Ia32/TestAndClearBit.asm + Ia32/TestAndClearBit.nasm [Sources.X64] X64/hypercall.S -- cgit