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 use correct interrupt index
details: https://anonhg.NetBSD.org/src/rev/fd4e48d6d783
branches: trunk
changeset: 446081:fd4e48d6d783
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Nov 22 20:47:37 2018 +0000
description:
use correct interrupt index
fixes intrctl list
from jmcneill@
diffstat:
sys/arch/arm/cortex/gicv3_its.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ef978853bf5c -r fd4e48d6d783 sys/arch/arm/cortex/gicv3_its.c
--- a/sys/arch/arm/cortex/gicv3_its.c Thu Nov 22 20:38:59 2018 +0000
+++ b/sys/arch/arm/cortex/gicv3_its.c Thu Nov 22 20:47:37 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3_its.c,v 1.4 2018/11/21 11:44:26 jmcneill Exp $ */
+/* $NetBSD: gicv3_its.c,v 1.5 2018/11/22 20:47:37 jakllsch 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.4 2018/11/21 11:44:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3_its.c,v 1.5 2018/11/22 20:47:37 jakllsch Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -693,7 +693,7 @@
struct cpu_info *ci;
kcpuset_zero(affinity);
- ci = its->its_targets[irq - its->its_pic->pic_irqbase];
+ ci = its->its_targets[irq];
if (ci)
kcpuset_set(affinity, cpu_index(ci));
}
@@ -709,7 +709,7 @@
if (set != 1)
return EINVAL;
- pa = its->its_pa[irq - its->its_pic->pic_irqbase];
+ pa = its->its_pa[irq];
if (pa == NULL)
return EINVAL;
@@ -719,7 +719,7 @@
gits_command_movi(its, devid, devid, cpu_index(ci));
gits_command_sync(its, its->its_rdbase[cpu_index(ci)]);
- its->its_targets[irq - its->its_pic->pic_irqbase] = ci;
+ its->its_targets[irq] = ci;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index