Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/ixp12x0 fix incorrect interrupt mask handling.



details:   https://anonhg.NetBSD.org/src/rev/c2e7ff4872dd
branches:  trunk
changeset: 543306:c2e7ff4872dd
user:      igy <igy%NetBSD.org@localhost>
date:      Sat Feb 22 11:13:10 2003 +0000

description:
fix incorrect interrupt mask handling.
pci_imask[IPL_NET] is incorrectly ORed on imask[IPL_SOFTSERIAL].
imask[IPL_NET] should be ORed.

diffstat:

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

diffs (27 lines):

diff -r d8c4c77d6c82 -r c2e7ff4872dd sys/arch/arm/ixp12x0/ixp12x0_intr.c
--- a/sys/arch/arm/ixp12x0/ixp12x0_intr.c       Sat Feb 22 10:06:52 2003 +0000
+++ b/sys/arch/arm/ixp12x0/ixp12x0_intr.c       Sat Feb 22 11:13:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixp12x0_intr.c,v 1.5 2003/02/17 20:51:52 ichiro Exp $ */
+/* $NetBSD: ixp12x0_intr.c,v 1.6 2003/02/22 11:13:10 igy Exp $ */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
  * ICU registers -- XXX will need to revisit this if those bits are
  * ever used in future steppings).
  */
-static const uint32_t si_to_irqbit[SI_NQUEUES] = {
+static const u_int32_t si_to_irqbit[SI_NQUEUES] = {
        IXP12X0_INTR_bit30,             /* SI_SOFT */
        IXP12X0_INTR_bit29,             /* SI_SOFTCLOCK */
        IXP12X0_INTR_bit28,             /* SI_SOFTNET */
@@ -267,7 +267,7 @@
        pci_imask[IPL_BIO] |= pci_imask[IPL_SOFTNET];
        imask[IPL_NET] |= imask[IPL_BIO];
        pci_imask[IPL_NET] |= pci_imask[IPL_BIO];
-       imask[IPL_SOFTSERIAL] |= pci_imask[IPL_NET];
+       imask[IPL_SOFTSERIAL] |= imask[IPL_NET];
        pci_imask[IPL_SOFTSERIAL] |= pci_imask[IPL_NET];
        imask[IPL_TTY] |= imask[IPL_SOFTSERIAL];
        pci_imask[IPL_TTY] |= pci_imask[IPL_SOFTSERIAL];



Home | Main Index | Thread Index | Old Index