diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-03-23 08:39:39 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-03-23 08:39:39 +0100 |
commit | 43dd3ea3a67b8cfe6d4517ece1a8d033f18bf63d (patch) | |
tree | 4a9d20b30b88dd95856065b6428fad997203b61f | |
parent | deb5ed4250e82530b396a42d0e7e60af84d64b06 (diff) | |
download | xen-43dd3ea3a67b8cfe6d4517ece1a8d033f18bf63d.tar.gz xen-43dd3ea3a67b8cfe6d4517ece1a8d033f18bf63d.tar.bz2 xen-43dd3ea3a67b8cfe6d4517ece1a8d033f18bf63d.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>
-rw-r--r-- | xen/include/asm-x86/grant_table.h | 2 |
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. */ |