aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-04 16:43:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-04 16:43:10 -0700
commit0c527252d94c5fc54e637143ec9fdb36ac698c62 (patch)
treec86cec4a1129c659cc713a7a84c816ad275259ff
parentce8bce014e4ec3dd4d1a1cb9e64c83d096d95127 (diff)
downloadsyslinux-0c527252d94c5fc54e637143ec9fdb36ac698c62.tar.gz
syslinux-0c527252d94c5fc54e637143ec9fdb36ac698c62.tar.xz
syslinux-0c527252d94c5fc54e637143ec9fdb36ac698c62.zip
com32, bitops: proper constraint for byte-sized outputsyslinux-4.04-pre21
The proper output for the byte-sized output of "setc" is "=qm". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/include/sys/bitops.h2
1 files changed, 1 insertions, 1 deletions
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;
}