|
@@ -17,6 +17,7 @@
|
|
|
#define _LINUX_BITOPS_H /* Inhibit inclusion of <linux/bitops.h> */
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
+#include <asm/asm.h>
|
|
|
|
|
|
static inline bool constant_test_bit(int nr, const void *addr)
|
|
|
{
|
|
@@ -28,7 +29,7 @@ static inline bool variable_test_bit(int nr, const void *addr)
|
|
|
bool v;
|
|
|
const u32 *p = (const u32 *)addr;
|
|
|
|
|
|
- asm("btl %2,%1; setc %0" : "=qm" (v) : "m" (*p), "Ir" (nr));
|
|
|
+ asm("btl %2,%1" CC_SET(c) : CC_OUT(c) (v) : "m" (*p), "Ir" (nr));
|
|
|
return v;
|
|
|
}
|
|
|
|