From: Daniel Kiper Subject: [PATCH] x86/boot/reloc: add memory to clobber list Date: Tue, 21 Oct 2014 23:09:08 +0200 Message-ID: <1413925748-10087-3-git-send-email-daniel.kiper@oracle.com> References: <1413925748-10087-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xggi3-00008J-VM for xen-devel@lists.xenproject.org; Tue, 21 Oct 2014 21:11:16 +0000 In-Reply-To: <1413925748-10087-1-git-send-email-daniel.kiper@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: andrew.cooper3@citrix.com, Daniel Kiper , keir@xen.org, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org Assembly inline in reloc_mbi_struct() clobbers memory so tell compiler about that. Signed-off-by: Daniel Kiper --- 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; } -- 1.7.10.4