mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
bitopts: add a size sufix for ambiguous instructions
clang requires that. In file included from arch/x86/cpu.c:9: arch/x86/include/asm/bitops.h:24:15: error: ambiguous instructions require an explicit suffix (could be 'btsw', 'btsl', or 'btsq') asm volatile("bts %1,%0" : ADDR : "Ir" (nr) : "memory"); Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
f238d56661
commit
f54f9f0efa
@@ -21,12 +21,12 @@
|
||||
|
||||
static inline void set_bit(int nr, volatile unsigned long *addr)
|
||||
{
|
||||
asm volatile("bts %1,%0" : ADDR : "Ir" (nr) : "memory");
|
||||
asm volatile("btsl %1,%0" : ADDR : "Ir" (nr) : "memory");
|
||||
}
|
||||
|
||||
static inline void change_bit(int nr, volatile unsigned long *addr)
|
||||
{
|
||||
asm volatile("btc %1,%0" : ADDR : "Ir" (nr));
|
||||
asm volatile("btcl %1,%0" : ADDR : "Ir" (nr));
|
||||
}
|
||||
|
||||
static inline int test_bit(int nr, volatile const unsigned long *addr)
|
||||
@@ -43,7 +43,7 @@ static inline int test_bit(int nr, volatile const unsigned long *addr)
|
||||
|
||||
static inline void clear_bit(int nr, volatile unsigned long *addr)
|
||||
{
|
||||
asm volatile("btr %1,%0" : ADDR : "Ir" (nr));
|
||||
asm volatile("btrl %1,%0" : ADDR : "Ir" (nr));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user