aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mach-default
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-10 16:35:45 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-10 16:35:45 +0000
commit72e4c0236f29a77cc940f7617ffc49fbeef3d798 (patch)
treef838612f929bc128588d5d521fce081251561401 /xen/include/asm-x86/mach-default
parent3e888e796f07a47da53aa629ab419e788c276671 (diff)
downloadxen-72e4c0236f29a77cc940f7617ffc49fbeef3d798.tar.gz
xen-72e4c0236f29a77cc940f7617ffc49fbeef3d798.tar.bz2
xen-72e4c0236f29a77cc940f7617ffc49fbeef3d798.zip
bitkeeper revision 1.1389.15.4 (4280e2e1TW-3Y8iE13utT8fyuaozWA)
Cset exclude: kaf24@firebug.cl.cam.ac.uk|ChangeSet|20050510144837|42684
Diffstat (limited to 'xen/include/asm-x86/mach-default')
-rw-r--r--xen/include/asm-x86/mach-default/irq_vectors_limits.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/xen/include/asm-x86/mach-default/irq_vectors_limits.h b/xen/include/asm-x86/mach-default/irq_vectors_limits.h
index a0664d7f67..b330026e6f 100644
--- a/xen/include/asm-x86/mach-default/irq_vectors_limits.h
+++ b/xen/include/asm-x86/mach-default/irq_vectors_limits.h
@@ -1,8 +1,21 @@
#ifndef _ASM_IRQ_VECTORS_LIMITS_H
#define _ASM_IRQ_VECTORS_LIMITS_H
-/* MSI limits */
+#ifdef CONFIG_PCI_MSI
#define NR_IRQS FIRST_SYSTEM_VECTOR
#define NR_IRQ_VECTORS NR_IRQS
+#else
+#ifdef CONFIG_X86_IO_APIC
+#define NR_IRQS 224
+# if (224 >= 32 * NR_CPUS)
+# define NR_IRQ_VECTORS NR_IRQS
+# else
+# define NR_IRQ_VECTORS (32 * NR_CPUS)
+# endif
+#else
+#define NR_IRQS 16
+#define NR_IRQ_VECTORS NR_IRQS
+#endif
+#endif
#endif /* _ASM_IRQ_VECTORS_LIMITS_H */