summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/X64/TestAndClearBit.nasm
blob: 38ac5490cbbe06a0b7dd74f6c04148d57496b28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DEFAULT REL
SECTION .text

; INT32
; EFIAPI
; TestAndClearBit (
;   IN  INT32 Bit,                // rcx
;   IN  volatile VOID* Address    // rdx
;   );
global ASM_PFX(TestAndClearBit)
ASM_PFX(TestAndClearBit):
  lock
  btr [rdx], ecx
  sbb eax, eax
  ret