Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/hppa/dev Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/e500bc2c2ec6
branches:  netbsd-9
changeset: 936757:e500bc2c2ec6
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 03 09:19:37 2020 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1035):

        sys/arch/hppa/dev/lasi.c: revision 1.3
        sys/arch/hppa/dev/wax.c: revision 1.2
        sys/arch/hppa/dev/asp.c: revision 1.2
        sys/arch/hppa/dev/dino.c: revision 1.5

Mask all interrupts before reading (and clearing) the interrupt request
register in attach.

Picked up by an assert in the qemu code.

diffstat:

 sys/arch/hppa/dev/asp.c  |  7 +++----
 sys/arch/hppa/dev/dino.c |  7 +++----
 sys/arch/hppa/dev/lasi.c |  7 +++----
 sys/arch/hppa/dev/wax.c  |  7 +++----
 4 files changed, 12 insertions(+), 16 deletions(-)

diffs (116 lines):

diff -r b06145f96c60 -r e500bc2c2ec6 sys/arch/hppa/dev/asp.c
--- a/sys/arch/hppa/dev/asp.c   Sun Aug 02 11:20:24 2020 +0000
+++ b/sys/arch/hppa/dev/asp.c   Mon Aug 03 09:19:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asp.c,v 1.1 2014/02/24 07:23:42 skrll Exp $    */
+/*     $NetBSD: asp.c,v 1.1.40.1 2020/08/03 09:19:37 martin Exp $      */
 
 /*     $OpenBSD: asp.c,v 1.5 2000/02/09 05:04:22 mickey Exp $  */
 
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.1 2014/02/24 07:23:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.1.40.1 2020/08/03 09:19:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -243,9 +243,8 @@
        s = splhigh();
        viper_setintrwnd(1 << ca->ca_irq);
 
-       sc->sc_trs->asp_imr = ~0;
+       sc->sc_trs->asp_imr = 0;
        (void)sc->sc_trs->asp_irr;
-       sc->sc_trs->asp_imr = 0;
 
        /* Establish the interrupt register. */
        hppa_interrupt_register_establish(ci, &sc->sc_ir);
diff -r b06145f96c60 -r e500bc2c2ec6 sys/arch/hppa/dev/dino.c
--- a/sys/arch/hppa/dev/dino.c  Sun Aug 02 11:20:24 2020 +0000
+++ b/sys/arch/hppa/dev/dino.c  Mon Aug 03 09:19:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dino.c,v 1.4 2019/04/16 06:45:04 skrll Exp $ */
+/*     $NetBSD: dino.c,v 1.4.4.1 2020/08/03 09:19:37 martin Exp $ */
 
 /*     $OpenBSD: dino.c,v 1.5 2004/02/13 20:39:31 mickey Exp $ */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.4 2019/04/16 06:45:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.4.4.1 2020/08/03 09:19:37 martin Exp $");
 
 /* #include "cardbus.h" */
 
@@ -1655,9 +1655,8 @@
        /* interrupts guts */
        s = splhigh();
        r->icr = 0;
-       r->imr = ~0;
+       r->imr = 0;
        (void)r->irr0;
-       r->imr = 0;
        r->iar0 = ci->ci_hpa | (31 - ca->ca_irq);
        splx(s);
        /* Establish the interrupt register. */
diff -r b06145f96c60 -r e500bc2c2ec6 sys/arch/hppa/dev/lasi.c
--- a/sys/arch/hppa/dev/lasi.c  Sun Aug 02 11:20:24 2020 +0000
+++ b/sys/arch/hppa/dev/lasi.c  Mon Aug 03 09:19:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lasi.c,v 1.2 2019/04/15 20:40:37 skrll Exp $   */
+/*     $NetBSD: lasi.c,v 1.2.4.1 2020/08/03 09:19:37 martin Exp $      */
 
 /*     $OpenBSD: lasi.c,v 1.4 2001/06/09 03:57:19 mickey Exp $ */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lasi.c,v 1.2 2019/04/15 20:40:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lasi.c,v 1.2.4.1 2020/08/03 09:19:37 martin Exp $");
 
 #undef LASIDEBUG
 
@@ -187,9 +187,8 @@
        s = splhigh();
        sc->sc_trs->lasi_iar = ci->ci_hpa | (31 - ca->ca_irq);
        sc->sc_trs->lasi_icr = 0;
-       sc->sc_trs->lasi_imr = ~0U;
+       sc->sc_trs->lasi_imr = 0;
        (void)sc->sc_trs->lasi_irr;
-       sc->sc_trs->lasi_imr = 0;
 
        /* Establish the interrupt register. */
        hppa_interrupt_register_establish(ci, &sc->sc_ir);
diff -r b06145f96c60 -r e500bc2c2ec6 sys/arch/hppa/dev/wax.c
--- a/sys/arch/hppa/dev/wax.c   Sun Aug 02 11:20:24 2020 +0000
+++ b/sys/arch/hppa/dev/wax.c   Mon Aug 03 09:19:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wax.c,v 1.1 2014/02/24 07:23:43 skrll Exp $    */
+/*     $NetBSD: wax.c,v 1.1.40.1 2020/08/03 09:19:37 martin Exp $      */
 
 /*     $OpenBSD: wax.c,v 1.1 1998/11/23 03:04:10 mickey Exp $  */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.1 2014/02/24 07:23:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.1.40.1 2020/08/03 09:19:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -139,9 +139,8 @@
        s = splhigh();
        sc->sc_regs->wax_iar = ci->ci_hpa | (31 - ca->ca_irq);
        sc->sc_regs->wax_icr = 0;
-       sc->sc_regs->wax_imr = ~0U;
+       sc->sc_regs->wax_imr = 0;
        (void)sc->sc_regs->wax_irr;
-       sc->sc_regs->wax_imr = 0;
        splx(s);
 
        /* Establish the interrupt register. */



Home | Main Index | Thread Index | Old Index