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 unblock interrupts also when reusing a prev...



details:   https://anonhg.NetBSD.org/src/rev/c326ac8c5508
branches:  trunk
changeset: 340936:c326ac8c5508
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Oct 11 20:20:33 2015 +0000

description:
unblock interrupts also when reusing a previously freed irq slot.

diffstat:

 sys/arch/arm/pic/pic.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 107d748afae0 -r c326ac8c5508 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Sun Oct 11 10:02:15 2015 +0000
+++ b/sys/arch/arm/pic/pic.c    Sun Oct 11 20:20:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.35 2015/04/18 14:09:32 skrll Exp $   */
+/*     $NetBSD: pic.c,v 1.36 2015/10/11 20:20:33 mlelstv 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.35 2015/04/18 14:09:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.36 2015/10/11 20:20:33 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -793,7 +793,7 @@
                if (pic__iplsources[off] == NULL) {
                        is->is_iplidx = off - pic_ipl_offset[ipl];
                        pic__iplsources[off] = is;
-                       return is;
+                       goto unblock;
                }
        }
 
@@ -824,6 +824,7 @@
 
        (*pic->pic_ops->pic_establish_irq)(pic, is);
 
+unblock:
        (*pic->pic_ops->pic_unblock_irqs)(pic, is->is_irq & ~0x1f,
            __BIT(is->is_irq & 0x1f));
        



Home | Main Index | Thread Index | Old Index