Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen Do not export the 'irq<->vector' abstraction ou...



details:   https://anonhg.NetBSD.org/src/rev/0819e29b9461
branches:  trunk
changeset: 836302:0819e29b9461
user:      cherry <cherry%NetBSD.org@localhost>
date:      Wed Oct 10 02:34:08 2018 +0000

description:
Do not export the 'irq<->vector' abstraction outside of pintr.c
anymore. We now think of them as a unified thing called 'gsi',
which is generated by mpacpi/mpbios

diffstat:

 sys/arch/xen/include/intr.h |  4 +---
 sys/arch/xen/x86/pintr.c    |  6 +++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 2bb28be3dab0 -r 0819e29b9461 sys/arch/xen/include/intr.h
--- a/sys/arch/xen/include/intr.h       Wed Oct 10 02:16:34 2018 +0000
+++ b/sys/arch/xen/include/intr.h       Wed Oct 10 02:34:08 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.48 2018/10/07 05:23:01 cherry Exp $ */
+/*     $NetBSD: intr.h,v 1.49 2018/10/10 02:34:08 cherry Exp $ */
 /*     NetBSD intr.h,v 1.15 2004/10/31 10:39:34 yamt Exp       */
 
 /*-
@@ -62,8 +62,6 @@
 };
 
 extern struct intrstub xenev_stubs[];
-extern int irq2vect[256];
-extern int vect2irq[256];
 extern int irq2port[NR_EVENT_CHANNELS]; /* actually port + 1, so that 0 is invaid */
 
 #ifdef MULTIPROCESSOR
diff -r 2bb28be3dab0 -r 0819e29b9461 sys/arch/xen/x86/pintr.c
--- a/sys/arch/xen/x86/pintr.c  Wed Oct 10 02:16:34 2018 +0000
+++ b/sys/arch/xen/x86/pintr.c  Wed Oct 10 02:34:08 2018 +0000
@@ -103,7 +103,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.8 2018/10/10 02:16:34 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.9 2018/10/10 02:34:08 cherry Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_xen.h"
@@ -143,8 +143,8 @@
 struct intrstub x2apic_level_stubs[MAX_INTR_SOURCES] = {{0,0}};
 #include <machine/i82093var.h>
 int irq2port[NR_EVENT_CHANNELS] = {0}; /* actually port + 1, so that 0 is invaid */
-int irq2vect[256] = {0};
-int vect2irq[256] = {0};
+static int irq2vect[256] = {0};
+static int vect2irq[256] = {0};
 #endif /* NIOAPIC */
 #if NACPICA > 0
 #include <machine/mpconfig.h>



Home | Main Index | Thread Index | Old Index