]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/XenBusDxe: Fix a nasm warning about instruction not lockable.
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 14 Nov 2014 17:35:49 +0000 (17:35 +0000)
committerlersek <lersek@Edk2>
Fri, 14 Nov 2014 17:35:49 +0000 (17:35 +0000)
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

OvmfPkg/XenBusDxe/X64/TestAndClearBit.nasm

index 38ac5490cbbe06a0b7dd74f6c04148d57496b28b..a4859a62a2508dac57de7a1b88fbbe9ee5d02e80 100644 (file)
@@ -9,8 +9,7 @@ SECTION .text
 ;   );\r
 global ASM_PFX(TestAndClearBit)\r
 ASM_PFX(TestAndClearBit):\r
-  lock\r
-  btr [rdx], ecx\r
+  lock btr [rdx], ecx\r
   sbb eax, eax\r
   ret\r
 \r