aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/genapic
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-21 15:50:11 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-21 15:50:11 +0000
commit55c771f676873ff66102be3826ed88f53ab57578 (patch)
tree8048471db0f4f844109ad2ad7ff7e3222805ae0e /xen/arch/x86/genapic
parenteadf155ee317140c416c3f7b07fa06f9688dc9fb (diff)
downloadxen-55c771f676873ff66102be3826ed88f53ab57578.tar.gz
xen-55c771f676873ff66102be3826ed88f53ab57578.tar.bz2
xen-55c771f676873ff66102be3826ed88f53ab57578.zip
Here is a patch to enable Xen to run on a Unisys ES7000 x86_64 system.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
Diffstat (limited to 'xen/arch/x86/genapic')
-rw-r--r--xen/arch/x86/genapic/es7000plat.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/xen/arch/x86/genapic/es7000plat.c b/xen/arch/x86/genapic/es7000plat.c
index 8bf571bd27..1f7150f9f9 100644
--- a/xen/arch/x86/genapic/es7000plat.c
+++ b/xen/arch/x86/genapic/es7000plat.c
@@ -136,7 +136,19 @@ parse_unisys_oem (char *oemptr, int oem_entries)
es7000_plat = 0;
} else {
printk("\nEnabling ES7000 specific features...\n");
- es7000_plat = 1;
+ /*
+ * Determine the generation of the ES7000 currently running.
+ *
+ * es7000_plat = 0 if the machine is NOT a Unisys ES7000 box
+ * es7000_plat = 1 if the machine is a 5xx ES7000 box
+ * es7000_plat = 2 if the machine is a x86_64 ES7000 box
+ *
+ */
+ if (!(boot_cpu_data.x86 <= 15 && boot_cpu_data.x86_model <= 2))
+ es7000_plat = 2;
+ else
+ es7000_plat = 1;
+
ioapic_renumber_irq = es7000_rename_gsi;
}
return es7000_plat;
@@ -286,7 +298,7 @@ es7000_stop_cpu(int cpu)
void __init
es7000_sw_apic()
{
- if (es7000_plat) {
+ if (es7000_plat == 1) {
int mip_status;
struct mip_reg es7000_mip_reg;