Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 Since GSIs are invented by the mpbios/mpacp...



details:   https://anonhg.NetBSD.org/src/rev/843a329f545b
branches:  trunk
changeset: 993919:843a329f545b
user:      cherry <cherry%NetBSD.org@localhost>
date:      Wed Oct 10 02:16:34 2018 +0000

description:
Since GSIs are invented by the mpbios/mpacpi interrupt routing probe code,
it's possible for shared GSIs to popup even outside the original
legacy_irq range.

Relax this latter, older assumption.

Thanks to Brad Spencer for extensive trialing on interesting hardware.

diffstat:

 sys/arch/xen/x86/pintr.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 0414edbedafb -r 843a329f545b sys/arch/xen/x86/pintr.c
--- a/sys/arch/xen/x86/pintr.c  Wed Oct 10 01:29:25 2018 +0000
+++ b/sys/arch/xen/x86/pintr.c  Wed Oct 10 02:16:34 2018 +0000
@@ -103,7 +103,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.7 2018/10/07 05:23:01 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.8 2018/10/10 02:16:34 cherry Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_xen.h"
@@ -176,8 +176,7 @@
                        irq2vect[gsi] == op.u.irq_op.vector);
                irq2vect[gsi] = op.u.irq_op.vector;
                KASSERT(vect2irq[op.u.irq_op.vector] == 0 ||
-                       (gsi > 0 && gsi < 16 &&
-                        vect2irq[op.u.irq_op.vector] == gsi));
+                        vect2irq[op.u.irq_op.vector] == gsi);
                vect2irq[op.u.irq_op.vector] = gsi;
        }
 



Home | Main Index | Thread Index | Old Index