diff options
Diffstat (limited to 'OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm')
-rw-r--r-- | OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm new file mode 100644 index 0000000000..ac809020a6 --- /dev/null +++ b/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.asm @@ -0,0 +1,17 @@ +.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
|