aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-03-23 13:58:22 +0000
committerJan Beulich <jbeulich@suse.com>2012-03-23 13:58:22 +0000
commit739fe96a37ec9007e660e24585788ac547c2e77b (patch)
tree978ced120b8baf7e52f4a056c985f349e3ee473f
parent74c5a290417cb41a484706a85a1bc7a8f645ce17 (diff)
downloadxen-739fe96a37ec9007e660e24585788ac547c2e77b.tar.gz
xen-739fe96a37ec9007e660e24585788ac547c2e77b.tar.bz2
xen-739fe96a37ec9007e660e24585788ac547c2e77b.zip
x86/gnttab: fix asm() operand in gnttab_clear_flag()
The operand needs to use the 'w' modifier in case the compiler happens to pick a register (which apparently it does for no-one but the reporter of this problem). Reported-by: Lin Ming <mlin@ss.pku.edu.cn> Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> xen-unstable changeset: 25092:a66fb91cb8d3 xen-unstable date: Fri Mar 23 08:39:39 2012 +0100
-rw-r--r--xen/include/asm-x86/grant_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/grant_table.h b/xen/include/asm-x86/grant_table.h
index db8bfb46f2..3013869384 100644
--- a/xen/include/asm-x86/grant_table.h
+++ b/xen/include/asm-x86/grant_table.h
@@ -54,7 +54,7 @@ static inline void gnttab_clear_flag(unsigned int nr, uint16_t *st)
* Note that this cannot be clear_bit(), as the access must be
* confined to the specified 2 bytes.
*/
- asm volatile ("lock btrw %1,%0" : "=m" (*st) : "Ir" (nr), "m" (*st));
+ asm volatile ("lock btrw %w1,%0" : "=m" (*st) : "Ir" (nr), "m" (*st));
}
/* Foreign mappings of HHVM-guest pages do not modify the type count. */