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 sc_gic_lines is the total number of vali...
details: https://anonhg.NetBSD.org/src/rev/fbac3aecf272
branches: trunk
changeset: 336451:fbac3aecf272
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Mar 02 11:37:25 2015 +0000
description:
sc_gic_lines is the total number of valid lines but pic_sources[] is sparse; when initializing mpsafe targets make sure to go all the way to the end (sc_pic.pic_maxsources) instead
diffstat:
sys/arch/arm/cortex/gic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7bd18aa05961 -r fbac3aecf272 sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Mon Mar 02 11:07:16 2015 +0000
+++ b/sys/arch/arm/cortex/gic.c Mon Mar 02 11:37:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gic.c,v 1.12 2014/10/29 19:27:36 skrll Exp $ */
+/* $NetBSD: gic.c,v 1.13 2015/03/02 11:37:25 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
#define _INTR_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.12 2014/10/29 19:27:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.13 2015/03/02 11:37:25 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -441,7 +441,7 @@
/*
* Update the mpsafe targets
*/
- for (size_t irq = 32; irq < sc->sc_gic_lines; irq++) {
+ for (size_t irq = 32; irq < sc->sc_pic.pic_maxsources; irq++) {
struct intrsource * const is = sc->sc_pic.pic_sources[irq];
const bus_size_t targets_reg = GICD_ITARGETSRn(irq / 4);
if (is != NULL && is->is_mpsafe) {
Home |
Main Index |
Thread Index |
Old Index