From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] libxc fix: fast trap id is only for x86 patch Date: Wed, 02 Mar 2005 15:19:00 -0600 Message-ID: <1109798340.6039.19.camel@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-mxNQtocI2D3Y0gQMEcMM" Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-mxNQtocI2D3Y0gQMEcMM Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 Jerone Young Open Virtualization IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) --=-mxNQtocI2D3Y0gQMEcMM Content-Disposition: attachment; filename=libxc_fast_trap_fixes.diff Content-Type: text/x-patch; name=libxc_fast_trap_fixes.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit 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; --=-mxNQtocI2D3Y0gQMEcMM-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click