From: BitKeeper B. <ri...@su...> - 2005-03-03 10:19:06
|
ChangeSet 1.1285, 2005/03/03 09:50:11+00:00, ka...@fi... 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 <jy...@us...> Signed-off-by: Keir Fraser <kei...@cl...> xc_linux_build.c | 3 +++ xc_plan9_build.c | 3 +++ xc_vmx_build.c | 3 +++ 3 files changed, 9 insertions(+) diff -Nru a/tools/libxc/xc_linux_build.c b/tools/libxc/xc_linux_build.c --- a/tools/libxc/xc_linux_build.c 2005-03-03 05:02:42 -05:00 +++ b/tools/libxc/xc_linux_build.c 2005-03-03 05:02:42 -05:00 @@ -433,7 +433,10 @@ 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 -Nru a/tools/libxc/xc_plan9_build.c b/tools/libxc/xc_plan9_build.c --- a/tools/libxc/xc_plan9_build.c 2005-03-03 05:02:42 -05:00 +++ b/tools/libxc/xc_plan9_build.c 2005-03-03 05:02:42 -05:00 @@ -505,7 +505,10 @@ 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 -Nru a/tools/libxc/xc_vmx_build.c b/tools/libxc/xc_vmx_build.c --- a/tools/libxc/xc_vmx_build.c 2005-03-03 05:02:42 -05:00 +++ b/tools/libxc/xc_vmx_build.c 2005-03-03 05:02:42 -05:00 @@ -576,7 +576,10 @@ 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; |