[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/boot/reloc: add memory to clobber list



On 21/10/14 22:09, Daniel Kiper wrote:
> Assembly inline in reloc_mbi_struct() clobbers
> memory so tell compiler about that.
>
> Signed-off-by: Daniel Kiper <daniel.kiper@xxxxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

> ---
>  xen/arch/x86/boot/reloc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/x86/boot/reloc.c b/xen/arch/x86/boot/reloc.c
> index 4609e55..f971920 100644
> --- a/xen/arch/x86/boot/reloc.c
> +++ b/xen/arch/x86/boot/reloc.c
> @@ -46,7 +46,7 @@ static void *reloc_mbi_struct(void *old, unsigned int bytes)
>      "    mov  %0,%%edi                \n"
>      "    rep  movsb                   \n"
>         : "=&r" (new), "+c" (bytes), "+S" (old)
> -     : : "edx", "edi");
> +     : : "edx", "edi", "memory");
>      return new;
>  }
>  


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.