]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: add memory to clobber list in reloc_mbi_struct()
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Oct 2014 08:22:52 +0000 (10:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Oct 2014 08:22:52 +0000 (10:22 +0200)
Assembly inline in reloc_mbi_struct() clobbers
memory so tell compiler about that.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/reloc.c

index 4609e55625c1cf6ab10c58c0c22c51422ac1425b..f9719205a4942c1a845f816550cbcf823e1915fa 100644 (file)
@@ -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;
 }