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 Pass correct event ID with MOVI commands



details:   https://anonhg.NetBSD.org/src/rev/63262e72400b
branches:  trunk
changeset: 999710:63262e72400b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jun 16 19:19:30 2019 +0000

description:
Pass correct event ID with MOVI commands

diffstat:

 sys/arch/arm/cortex/gicv3_its.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0ce37fced797 -r 63262e72400b sys/arch/arm/cortex/gicv3_its.c
--- a/sys/arch/arm/cortex/gicv3_its.c   Sun Jun 16 18:30:31 2019 +0000
+++ b/sys/arch/arm/cortex/gicv3_its.c   Sun Jun 16 19:19:30 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3_its.c,v 1.13 2019/06/16 11:05:58 jmcneill Exp $ */
+/* $NetBSD: gicv3_its.c,v 1.14 2019/06/16 19:19:30 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3_its.c,v 1.13 2019/06/16 11:05:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3_its.c,v 1.14 2019/06/16 19:19:30 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -754,7 +754,7 @@
                KASSERT(pa != NULL);
 
                const uint32_t devid = gicv3_its_devid(pa->pa_pc, pa->pa_tag);
-               gits_command_movi(its, devid, devid, cpu_index(ci));
+               gits_command_movi(its, devid, irq + its->its_pic->pic_irqbase, cpu_index(ci));
                gits_command_sync(its, its->its_rdbase[cpu_index(ci)]);
        }
 
@@ -793,7 +793,7 @@
 
        if (its->its_cpuonline[cpu_index(ci)] == true) {
                const uint32_t devid = gicv3_its_devid(pa->pa_pc, pa->pa_tag);
-               gits_command_movi(its, devid, devid, cpu_index(ci));
+               gits_command_movi(its, devid, irq + its->its_pic->pic_irqbase, cpu_index(ci));
                gits_command_sync(its, its->its_rdbase[cpu_index(ci)]);
        }
 



Home | Main Index | Thread Index | Old Index