Skip to contentSkip to conversation

libxc fix: fast trap id is only for x86 patch

PATCH New Jerone Young 1 participant 1 message Mar 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc fix: fast trap id is only for x86 patch

x86 ( 32bit) is the only architecture that uses Fast trap vector offset ( fast_trap_idx ). This makes sure that x86 is the only architecture to use this variable.

Jerone Young
Open Virtualization
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)

tools/libxc/xc_linux_build.c +3 -0
diff -Nuarp xen-unstable-0301/tools/libxc/xc_linux_build.c xen-unstable-0301-patch/tools/libxc/xc_linux_build.c
@@ -433,7 +433,10 @@ int xc_linux_build(int xc_handle,
         ctxt->trap_ctxt[i].vector = i;
         ctxt->trap_ctxt[i].cs     = FLAT_KERNEL_CS;
     }
+
+#if defined(__i386__)
     ctxt->fast_trap_idx = 0;
+#endif
 
     /* No LDT. */
     ctxt->ldt_ents = 0;
tools/libxc/xc_plan9_build.c +3 -0
diff -Nuarp xen-unstable-0301/tools/libxc/xc_plan9_build.c xen-unstable-0301-patch/tools/libxc/xc_plan9_build.c
@@ -505,7 +505,10 @@ xc_plan9_build(int xc_handle,
 		ctxt->trap_ctxt[i].vector = i;
 		ctxt->trap_ctxt[i].cs = FLAT_KERNEL_CS;
 	}
+
+#if defined(__i386__)
 	ctxt->fast_trap_idx = 0;
+#endif
 
 	/* No LDT. */
 	ctxt->ldt_ents = 0;
tools/libxc/xc_vmx_build.c +3 -0
diff -Nuarp xen-unstable-0301/tools/libxc/xc_vmx_build.c xen-unstable-0301-patch/tools/libxc/xc_vmx_build.c
@@ -576,7 +576,10 @@ int xc_vmx_build(int xc_handle,
         ctxt->trap_ctxt[i].vector = i;
         ctxt->trap_ctxt[i].cs     = FLAT_KERNEL_CS;
     }
+
+#if defined(__i386__)
     ctxt->fast_trap_idx = 0;
+#endif
 
     /* No LDT. */
     ctxt->ldt_ents = 0;