Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/iq80310 Processing pending interrupts before...



details:   https://anonhg.NetBSD.org/src/rev/d3012862f028
branches:  trunk
changeset: 525483:d3012862f028
user:      briggs <briggs%NetBSD.org@localhost>
date:      Fri Apr 12 04:52:57 2002 +0000

description:
Processing pending interrupts before reenabling external interrupts in splx().

diffstat:

 sys/arch/evbarm/iq80310/iq80310_intr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 4106820fc35a -r d3012862f028 sys/arch/evbarm/iq80310/iq80310_intr.c
--- a/sys/arch/evbarm/iq80310/iq80310_intr.c    Fri Apr 12 04:50:01 2002 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.c    Fri Apr 12 04:52:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_intr.c,v 1.9 2002/02/09 03:52:31 thorpej Exp $ */
+/*     $NetBSD: iq80310_intr.c,v 1.10 2002/04/12 04:52:57 briggs Exp $ */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -324,6 +324,10 @@
        old = current_spl_level;
        current_spl_level = new;
 
+       /* If there are software interrupts to process, do it. */
+       if ((ipending & ~IRQ_BITS) & ~new)
+               iq80310_do_pending();
+
        /*
         * If there are pending hardware interrupts (i.e. the
         * external interrupt is disabled in the ICU), and all
@@ -336,10 +340,6 @@
         */
        if ((new & IRQ_BITS) == 0 && (ipending & IRQ_BITS))
                i80200_intr_enable(INTCTL_IM);
-
-       /* If there are software interrupts to process, do it. */
-       if ((ipending & ~IRQ_BITS) & ~new)
-               iq80310_do_pending();
 }
 
 int



Home | Main Index | Thread Index | Old Index