From: John Levon Subject: [PATCH] fix asm syntax Date: Tue, 17 Oct 2006 14:22:41 +0100 Message-ID: <20061017132241.GD6653@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # 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 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"