All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][1/5] x86-64-eax.patch
@ 2005-04-19 22:05 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2005-04-19 22:05 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

   vmx_vmcs.c:
     fix inline asms for x86-64
   
   Signed-Off-By: Benjamin Liu <benjamin.liu@intel.com>
   Signed-Off-By: Arun Sharma <arun.sharma@intel.com>
diff -Nru a/xen/arch/x86/vmx_vmcs.c b/xen/arch/x86/vmx_vmcs.c
--- a/xen/arch/x86/vmx_vmcs.c	2005-04-18 16:49:37 -07:00
+++ b/xen/arch/x86/vmx_vmcs.c	2005-04-18 16:49:37 -07:00
@@ -187,7 +187,7 @@
 
     vmx_setup_platform(ed, ec);
 
-    __asm__ __volatile__ ("sgdt  (%%eax) \n" :: "a"(&desc) : "memory");
+    __asm__ __volatile__ ("sgdt  (%0) \n" :: "a"(&desc) : "memory");
     host_env.gdtr_limit = desc.size;
     host_env.gdtr_base = desc.address;
 
@@ -197,7 +197,7 @@
     error |= __vmwrite(GUEST_LDTR_BASE, 0);
     error |= __vmwrite(GUEST_LDTR_LIMIT, 0);
         
-    __asm__ __volatile__ ("str  (%%eax) \n" :: "a"(&tr) : "memory");
+    __asm__ __volatile__ ("str  (%0) \n" :: "a"(&tr) : "memory");
     host_env.tr_selector = tr;
     host_env.tr_limit = sizeof(struct tss_struct);
     host_env.tr_base = (unsigned long) &init_tss[cpu];
@@ -358,7 +358,7 @@
     error |= __vmwrite(HOST_GS_BASE, host_env->ds_base);
 
 /* Debug */
-    __asm__ __volatile__ ("sidt  (%%eax) \n" :: "a"(&desc) : "memory");
+    __asm__ __volatile__ ("sidt  (%0) \n" :: "a"(&desc) : "memory");
     host_env->idtr_limit = desc.size;
     host_env->idtr_base = desc.address;
     error |= __vmwrite(HOST_IDTR_BASE, host_env->idtr_base);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-19 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-19 22:05 [PATCH][1/5] x86-64-eax.patch Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.