The fix, having "lock" and the locked instruction on the same line in the source. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Build-tested-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16394 6f19259b-4bc3-4df7-8a09-765794883524
16 lines
270 B
NASM
16 lines
270 B
NASM
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
|
|
|