summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/Ia32/TestAndClearBit.S
blob: 58dfa8ba57e339423256f3dd2403980c9bcda067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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