Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex Revert "Route all interrupts to the prim...



details:   https://anonhg.NetBSD.org/src/rev/9a912fd2d125
branches:  trunk
changeset: 451932:9a912fd2d125
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 12 10:27:59 2019 +0000

description:
Revert "Route all interrupts to the primary PE by default"

diffstat:

 sys/arch/arm/cortex/gicv3.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r ac2cc8ac879a -r 9a912fd2d125 sys/arch/arm/cortex/gicv3.c
--- a/sys/arch/arm/cortex/gicv3.c       Wed Jun 12 10:19:27 2019 +0000
+++ b/sys/arch/arm/cortex/gicv3.c       Wed Jun 12 10:27:59 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3.c,v 1.15 2019/06/12 10:03:28 jmcneill Exp $ */
+/* $NetBSD: gicv3.c,v 1.16 2019/06/12 10:27:59 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.15 2019/06/12 10:03:28 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.16 2019/06/12 10:27:59 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -178,7 +178,6 @@
                        gicr_write_4(sc, n, GICR_IPRIORITYRn(is->is_irq / 4), ipriority);
                }
        } else {
-#if notyet
                if (is->is_mpsafe) {
                        /* Route MP-safe interrupts to all participating PEs */
                        irouter = GICD_IROUTER_Interrupt_Routing_mode;
@@ -186,10 +185,6 @@
                        /* Route non-MP-safe interrupts to the primary PE only */
                        irouter = sc->sc_irouter[0];
                }
-#else
-               /* Route interrupts to the primary PE by default */
-               irouter = sc->sc_irouter[0];
-#endif
                gicd_write_8(sc, GICD_IROUTER(is->is_irq), irouter);
 
                /* Update interrupt configuration */



Home | Main Index | Thread Index | Old Index