Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/pic Fix intrctl for pics with non-0 irqbase



details:   https://anonhg.NetBSD.org/src/rev/8beda72619b7
branches:  trunk
changeset: 836950:8beda72619b7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Nov 13 20:24:48 2018 +0000

description:
Fix intrctl for pics with non-0 irqbase

diffstat:

 sys/arch/arm/pic/pic.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r abd47078acdd -r 8beda72619b7 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Tue Nov 13 20:12:45 2018 +0000
+++ b/sys/arch/arm/pic/pic.c    Tue Nov 13 20:24:48 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.46 2018/11/11 10:14:14 jmcneill Exp $        */
+/*     $NetBSD: pic.c,v 1.47 2018/11/13 20:24:48 jmcneill Exp $        */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -33,7 +33,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.46 2018/11/11 10:14:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.47 2018/11/13 20:24:48 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -916,7 +916,7 @@
                if (pic == NULL || pic->pic_irqbase < 0)
                        continue;
                for (irq = 0; irq < pic->pic_maxsources; irq++) {
-                       is = pic->pic_sources[irq - pic->pic_irqbase];
+                       is = pic->pic_sources[irq];
                        if (is == NULL || is->is_source[0] == '\0')
                                continue;
 
@@ -945,7 +945,7 @@
                struct pic_softc * const pic = pic_list[slot];
                if (pic != NULL && pic->pic_irqbase >= 0) {
                        for (irq = 0; irq < pic->pic_maxsources; irq++) {
-                               is = pic->pic_sources[irq - pic->pic_irqbase];
+                               is = pic->pic_sources[irq];
                                if (is && is->is_source[0] != '\0')
                                        count++;
                        }
@@ -960,7 +960,7 @@
                if (pic == NULL || pic->pic_irqbase < 0)
                        continue;
                for (irq = 0; irq < pic->pic_maxsources; irq++) {
-                       is = pic->pic_sources[irq - pic->pic_irqbase];
+                       is = pic->pic_sources[irq];
                        if (is == NULL || is->is_source[0] == '\0')
                                continue;
 



Home | Main Index | Thread Index | Old Index