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 Adjust ci_intr_depth when processing pendin...



details:   https://anonhg.NetBSD.org/src/rev/5256ab77234b
branches:  trunk
changeset: 959634:5256ab77234b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Feb 20 19:35:07 2021 +0000

description:
Adjust ci_intr_depth when processing pending ints

diffstat:

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

diffs (34 lines):

diff -r 1a0f898f44f8 -r 5256ab77234b sys/arch/arm/pic/pic_splfuncs.c
--- a/sys/arch/arm/pic/pic_splfuncs.c   Sat Feb 20 19:30:46 2021 +0000
+++ b/sys/arch/arm/pic/pic_splfuncs.c   Sat Feb 20 19:35:07 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic_splfuncs.c,v 1.14 2021/02/20 19:30:46 jmcneill Exp $       */
+/*     $NetBSD: pic_splfuncs.c,v 1.15 2021/02/20 19:35:07 jmcneill 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_splfuncs.c,v 1.14 2021/02/20 19:30:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic_splfuncs.c,v 1.15 2021/02/20 19:35:07 jmcneill Exp $");
 
 #define _INTR_PRIVATE
 #include <sys/param.h>
@@ -92,6 +92,7 @@
                goto skip_pending;
        }
 
+       ci->ci_intr_depth++;
        while ((ci->ci_pending_ipls & ~__BIT(savedipl)) > __BIT(savedipl)) {
                KASSERT(ci->ci_pending_ipls < __BIT(NIPL));
                for (;;) {
@@ -106,6 +107,7 @@
                        pic_list_unblock_irqs(ci);
                }
        }
+       ci->ci_intr_depth--;
 skip_pending:
 #endif
 



Home | Main Index | Thread Index | Old Index