Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/explora/dev pckbcintr() must be running with...



details:   https://anonhg.NetBSD.org/src/rev/718aabb7a898
branches:  trunk
changeset: 960005:718aabb7a898
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Mar 05 06:14:47 2021 +0000

description:
pckbcintr() must be running with IPL_TTY, not IPL_SERIAL. Otherwise,
tty(4) routines are unexpectedly interrupted, which results in
"locking against myself" errors for tty_lock.

diffstat:

 sys/arch/evbppc/explora/dev/pckbc_elb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5a772fbdd2f9 -r 718aabb7a898 sys/arch/evbppc/explora/dev/pckbc_elb.c
--- a/sys/arch/evbppc/explora/dev/pckbc_elb.c   Fri Mar 05 06:06:34 2021 +0000
+++ b/sys/arch/evbppc/explora/dev/pckbc_elb.c   Fri Mar 05 06:14:47 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pckbc_elb.c,v 1.10 2021/03/02 12:01:02 rin Exp $       */
+/*     $NetBSD: pckbc_elb.c,v 1.11 2021/03/05 06:14:47 rin Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc_elb.c,v 1.10 2021/03/02 12:01:02 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc_elb.c,v 1.11 2021/03/05 06:14:47 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -116,7 +116,7 @@
         */
 
        if (irq >= 0)
-               intr_establish_xname(irq, IST_LEVEL, IPL_SERIAL, pckbcintr, sc,
+               intr_establish_xname(irq, IST_LEVEL, IPL_TTY, pckbcintr, sc,
                    device_xname(sc->sc_dv));
 
        msc->sc_irq = -1;



Home | Main Index | Thread Index | Old Index