From: Daniel Kiper Date: Thu, 23 Oct 2014 08:22:52 +0000 (+0200) Subject: x86/boot: add memory to clobber list in reloc_mbi_struct() X-Git-Tag: 4.5.0-rc2~54 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=04dbb22e89c0e5f947e509d4728354923082264a;p=xen.git x86/boot: add memory to clobber list in reloc_mbi_struct() Assembly inline in reloc_mbi_struct() clobbers memory so tell compiler about that. Signed-off-by: Daniel Kiper Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/boot/reloc.c b/xen/arch/x86/boot/reloc.c index 4609e55625..f9719205a4 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; }