summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/XenBusDxe/X64/TestAndClearBit.S')
-rw-r--r--OvmfPkg/XenBusDxe/X64/TestAndClearBit.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S
new file mode 100644
index 0000000000..0372e83bdd
--- /dev/null
+++ b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.S
@@ -0,0 +1,12 @@
+# 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