All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.sourceforge.net>
Subject: [PATCH] libxc fix: fast trap id is only for x86 patch
Date: Wed, 02 Mar 2005 15:19:00 -0600	[thread overview]
Message-ID: <1109798340.6039.19.camel@thinkpad> (raw)

[-- 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;

                 reply	other threads:[~2005-03-02 21:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1109798340.6039.19.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.