mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
This commit is contained in:
1 parent
deb5ed4250
commit
43dd3ea3a6
1 file changed
+1
-1
@@ -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. */
|
||||
|
||||