xcp-1.6-updates/xen-4.1.hg

changeset 23268:35e2f18e04b6

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
author Jan Beulich <jbeulich@suse.com>
date Fri Mar 23 13:58:22 2012 +0000 (2012-03-23)
parents 14416d8215d4
children d67e4d12723f
files xen/include/asm-x86/grant_table.h
line diff
     1.1 --- a/xen/include/asm-x86/grant_table.h	Wed Mar 14 12:02:02 2012 +0000
     1.2 +++ b/xen/include/asm-x86/grant_table.h	Fri Mar 23 13:58:22 2012 +0000
     1.3 @@ -54,7 +54,7 @@ static inline void gnttab_clear_flag(uns
     1.4       * Note that this cannot be clear_bit(), as the access must be
     1.5       * confined to the specified 2 bytes.
     1.6       */
     1.7 -    asm volatile ("lock btrw %1,%0" : "=m" (*st) : "Ir" (nr), "m" (*st));
     1.8 +    asm volatile ("lock btrw %w1,%0" : "=m" (*st) : "Ir" (nr), "m" (*st));
     1.9  }
    1.10  
    1.11  /* Foreign mappings of HHVM-guest pages do not modify the type count. */