diff options
Diffstat (limited to 'libitm/config/linux/x86/futex_bits.h')
-rw-r--r-- | libitm/config/linux/x86/futex_bits.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libitm/config/linux/x86/futex_bits.h b/libitm/config/linux/x86/futex_bits.h index e4b70d6f0ec..8f7e4fd3e8c 100644 --- a/libitm/config/linux/x86/futex_bits.h +++ b/libitm/config/linux/x86/futex_bits.h @@ -30,12 +30,13 @@ static inline long sys_futex0 (std::atomic<int> *addr, int op, int val) { - register long r10 __asm__("%r10") = 0; long res; + register long r10 __asm__("%r10") = 0; __asm volatile ("syscall" : "=a" (res) - : "0" (SYS_futex), "D" (addr), "S" (op), "d" (val), "r" (r10) + : "0" (SYS_futex), "D" (addr), "S" (op), + "d" (val), "r" (r10) : "r11", "rcx", "memory"); return res; |