[Xen-devel] [PATCH] fix asm syntax

John Levon
Tue, 17 Oct 2006 13:22:41 -0000

# HG changeset patch
# User john.levon@sun.com
# Date 1161091309 25200
# Node ID 3348121778e4020dac6ee010320e704de0d64f67
# Parent  4620ccff3fd3ec41bbdabfdddb3f75fb83673172
Our version of ''as'' doesn''t accept the
''rex64/'' syntax.

Signed-off-by: John Levon <john.levon@sun.com>

diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c
--- a/xen/arch/x86/i387.c
+++ b/xen/arch/x86/i387.c
@@ -45,7 +45,7 @@ void save_init_fpu(struct vcpu *v)
          * mode that doesn''t require extended registers.
          */
         __asm__ __volatile__ (
-            "rex64/fxsave (%1)"
+            "rex64 ; fxsave (%1)"
             : "=m" (*fpu_ctxt) : "cdaSDb" (fpu_ctxt) );
 #endif

@@ -95,7 +95,7 @@ void restore_fpu(struct vcpu *v)
             "1: fxrstor %0            \n"
 #else /* __x86_64__ */
             /* See above for why the operands/constraints are this way. */
-            "1: rex64/fxrstor (%2)    \n"
+            "1: rex64 ; fxrstor (%2)    \n"
 #endif
             ".section .fixup,\"ax\"   \n"
             "2: push %%"__OP"ax       \n"