* [PATCH] libxc fix: fast trap id is only for x86 patch
@ 2005-03-02 21:19 Jerone Young
0 siblings, 0 replies; only message in thread
From: Jerone Young @ 2005-03-02 21:19 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
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.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Jerone Young
Open Virtualization
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)
[-- Attachment #2: libxc_fast_trap_fixes.diff --]
[-- Type: text/x-patch, Size: 1626 bytes --]
diff -Nuarp xen-unstable-0301/tools/libxc/xc_linux_build.c xen-unstable-0301-patch/tools/libxc/xc_linux_build.c
--- xen-unstable-0301/tools/libxc/xc_linux_build.c 2005-03-02 14:42:21.895299792 -0600
+++ xen-unstable-0301-patch/tools/libxc/xc_linux_build.c 2005-03-02 14:14:25.884092224 -0600
@@ -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;
diff -Nuarp xen-unstable-0301/tools/libxc/xc_plan9_build.c xen-unstable-0301-patch/tools/libxc/xc_plan9_build.c
--- xen-unstable-0301/tools/libxc/xc_plan9_build.c 2005-03-02 14:42:21.895299792 -0600
+++ xen-unstable-0301-patch/tools/libxc/xc_plan9_build.c 2005-03-02 14:14:57.207330368 -0600
@@ -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;
diff -Nuarp xen-unstable-0301/tools/libxc/xc_vmx_build.c xen-unstable-0301-patch/tools/libxc/xc_vmx_build.c
--- xen-unstable-0301/tools/libxc/xc_vmx_build.c 2005-03-02 14:42:21.895299792 -0600
+++ xen-unstable-0301-patch/tools/libxc/xc_vmx_build.c 2005-03-02 14:15:23.539327296 -0600
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-02 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-02 21:19 [PATCH] libxc fix: fast trap id is only for x86 patch Jerone Young
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.