From 0c527252d94c5fc54e637143ec9fdb36ac698c62 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 4 Apr 2011 16:43:10 -0700 Subject: com32, bitops: proper constraint for byte-sized output The proper output for the byte-sized output of "setc" is "=qm". Signed-off-by: H. Peter Anvin --- com32/include/sys/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/include/sys/bitops.h b/com32/include/sys/bitops.h index 33bb0aa8..40e09fe7 100644 --- a/com32/include/sys/bitops.h +++ b/com32/include/sys/bitops.h @@ -54,7 +54,7 @@ static inline int __purefunc test_bit(long __bit, const void *__bitmap) { unsigned char __r; asm("btl %2,%1; setc %0" - : "=r" (__r) + : "=qm" (__r) : "m" (*(const unsigned char *)__bitmap), "Ir" (__bit)); return __r; } -- cgit v1.2.1