direct-io.hg

changeset 3970:bfb3e44b632c

bitkeeper revision 1.1236.1.49 (4226ddd3E_h9Dlj5W6XverRkiMcqMw)

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>
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 03 09:50:11 2005 +0000 (2005-03-03)
parents c00d1876f1ac
children 063feee67751
files tools/libxc/xc_linux_build.c tools/libxc/xc_plan9_build.c tools/libxc/xc_vmx_build.c
line diff
     1.1 --- a/tools/libxc/xc_linux_build.c	Thu Mar 03 01:43:41 2005 +0000
     1.2 +++ b/tools/libxc/xc_linux_build.c	Thu Mar 03 09:50:11 2005 +0000
     1.3 @@ -433,7 +433,10 @@ int xc_linux_build(int xc_handle,
     1.4          ctxt->trap_ctxt[i].vector = i;
     1.5          ctxt->trap_ctxt[i].cs     = FLAT_KERNEL_CS;
     1.6      }
     1.7 +
     1.8 +#if defined(__i386__)
     1.9      ctxt->fast_trap_idx = 0;
    1.10 +#endif
    1.11  
    1.12      /* No LDT. */
    1.13      ctxt->ldt_ents = 0;
     2.1 --- a/tools/libxc/xc_plan9_build.c	Thu Mar 03 01:43:41 2005 +0000
     2.2 +++ b/tools/libxc/xc_plan9_build.c	Thu Mar 03 09:50:11 2005 +0000
     2.3 @@ -505,7 +505,10 @@ xc_plan9_build(int xc_handle,
     2.4  		ctxt->trap_ctxt[i].vector = i;
     2.5  		ctxt->trap_ctxt[i].cs = FLAT_KERNEL_CS;
     2.6  	}
     2.7 +
     2.8 +#if defined(__i386__)
     2.9  	ctxt->fast_trap_idx = 0;
    2.10 +#endif
    2.11  
    2.12  	/* No LDT. */
    2.13  	ctxt->ldt_ents = 0;
     3.1 --- a/tools/libxc/xc_vmx_build.c	Thu Mar 03 01:43:41 2005 +0000
     3.2 +++ b/tools/libxc/xc_vmx_build.c	Thu Mar 03 09:50:11 2005 +0000
     3.3 @@ -576,7 +576,10 @@ int xc_vmx_build(int xc_handle,
     3.4          ctxt->trap_ctxt[i].vector = i;
     3.5          ctxt->trap_ctxt[i].cs     = FLAT_KERNEL_CS;
     3.6      }
     3.7 +
     3.8 +#if defined(__i386__)
     3.9      ctxt->fast_trap_idx = 0;
    3.10 +#endif
    3.11  
    3.12      /* No LDT. */
    3.13      ctxt->ldt_ents = 0;