aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/i387.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 18:50:08 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-17 18:50:08 +0100
commit1943191f67703b7fe41838cd2b40e061cfab8541 (patch)
treecb42310e7eae797e21f21e35c4c7cf2274181798 /xen/arch/x86/i387.c
parentaeeadb072638ad88c0c2d655d85ec8c64b62d1b8 (diff)
downloadxen-1943191f67703b7fe41838cd2b40e061cfab8541.tar.gz
xen-1943191f67703b7fe41838cd2b40e061cfab8541.tar.bz2
xen-1943191f67703b7fe41838cd2b40e061cfab8541.zip
Define REX64_PREFIX to account for assembler syntax differences on SVR4 targets.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'xen/arch/x86/i387.c')
-rw-r--r--xen/arch/x86/i387.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c
index ebfc37fa7b..899f80da3b 100644
--- a/xen/arch/x86/i387.c
+++ b/xen/arch/x86/i387.c
@@ -14,6 +14,7 @@
#include <asm/processor.h>
#include <asm/hvm/support.h>
#include <asm/i387.h>
+#include <asm/asm_defns.h>
void init_fpu(void)
{
@@ -41,11 +42,11 @@ void save_init_fpu(struct vcpu *v)
#else /* __x86_64__ */
/*
* The only way to force fxsaveq on a wide range of gas versions. On
- * older versions the rex64 prefix works only if we force an addressing
- * mode that doesn't require extended registers.
+ * older versions the rex64 prefix works only if we force an
+ * addressing mode that doesn't require extended registers.
*/
__asm__ __volatile__ (
- "rex64/fxsave (%1)"
+ REX64_PREFIX "fxsave (%1)"
: "=m" (*fpu_ctxt) : "cdaSDb" (fpu_ctxt) );
#endif
@@ -95,7 +96,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_PREFIX "fxrstor (%2)\n"
#endif
".section .fixup,\"ax\" \n"
"2: push %%"__OP"ax \n"