summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm')
-rw-r--r--OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm
new file mode 100644
index 0000000000..3a2587913e
--- /dev/null
+++ b/OvmfPkg/XenBusDxe/X64/TestAndClearBit.asm
@@ -0,0 +1,16 @@
+.code
+
+; INT32
+; EFIAPI
+; TestAndClearBit (
+; IN INT32 Bit, // rcx
+; IN volatile VOID* Address // rdx
+; );
+TestAndClearBit PROC
+ lock
+ btr [rdx], ecx
+ sbb eax, eax
+ ret
+TestAndClearBit ENDP
+
+END