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 a bug that incorrect arg is passed to p...



details:   https://anonhg.NetBSD.org/src/rev/648d0dee164f
branches:  trunk
changeset: 782356:648d0dee164f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Oct 30 07:42:35 2012 +0000

description:
Fix a bug that incorrect arg is passed to pic_block_irqs() on disestablish.
Fixes PR#45371 by Yuichiro Goto.

diffstat:

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

diffs (27 lines):

diff -r d39041e85bca -r 648d0dee164f sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Tue Oct 30 01:17:24 2012 +0000
+++ b/sys/arch/arm/pic/pic.c    Tue Oct 30 07:42:35 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.14 2012/09/01 01:44:16 matt Exp $    */
+/*     $NetBSD: pic.c,v 1.15 2012/10/30 07:42:35 msaitoh Exp $ */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -28,7 +28,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.14 2012/09/01 01:44:16 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.15 2012/10/30 07:42:35 msaitoh Exp $");
 
 #define _INTR_PRIVATE
 #include <sys/param.h>
@@ -684,7 +684,7 @@
 
        KASSERT(is == pic->pic_sources[irq]);
 
-       (*pic->pic_ops->pic_block_irqs)(pic, irq & ~31, __BIT(irq));
+       (*pic->pic_ops->pic_block_irqs)(pic, irq & ~0x1f, __BIT(irq & 0x1f));
        pic->pic_sources[irq] = NULL;
        pic__iplsources[pic_ipl_offset[is->is_ipl] + is->is_iplidx] = NULL;
        /*



Home | Main Index | Thread Index | Old Index