]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix some inline assembly constraints
authorVMware, Inc <>
Tue, 13 Mar 2012 20:10:24 +0000 (13:10 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 14 Mar 2012 16:43:26 +0000 (09:43 -0700)
The constant arguments to the "bt" family of instructions are limited
to [0,31] for 32-bit operations and [0,63] for 64-bit operations.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/vm_atomic.h

index ceb72c4180dbe30e6c3f88217e9661149771d174..2c8be0906d4765eaf61739e7d29a75efb3d773c4 100644 (file)
@@ -2397,7 +2397,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // IN
       "bt %2, %1; setc %0"
       : "=rm"(out)
       : "m" (var->value),
-        "ri" (bit)
+        "rJ" (bit)
       : "cc"
    );
    return out;