Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev initialise ih_pending



details:   https://anonhg.NetBSD.org/src/rev/4a33189c5c9f
branches:  trunk
changeset: 768226:4a33189c5c9f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Aug 12 06:41:15 2011 +0000

description:
initialise ih_pending

diffstat:

 sys/arch/sparc64/dev/sbus.c   |  7 +++++--
 sys/arch/sparc64/dev/schizo.c |  5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (61 lines):

diff -r 6b8e6df45a29 -r 4a33189c5c9f sys/arch/sparc64/dev/sbus.c
--- a/sys/arch/sparc64/dev/sbus.c       Fri Aug 12 06:40:10 2011 +0000
+++ b/sys/arch/sparc64/dev/sbus.c       Fri Aug 12 06:41:15 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbus.c,v 1.90 2011/07/29 08:37:36 mrg Exp $ */
+/*     $NetBSD: sbus.c,v 1.91 2011/08/12 06:41:15 mrg Exp $ */
 
 /*
  * Copyright (c) 1999-2002 Eduardo Horvath
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.90 2011/07/29 08:37:36 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.91 2011/08/12 06:41:15 mrg Exp $");
 
 #include "opt_ddb.h"
 
@@ -262,6 +262,7 @@
        ipl = 1;
        ih->ih_pil = (1<<ipl);
        ih->ih_number = INTVEC(*(ih->ih_map));
+       ih->ih_pending = 0;
        intr_establish(ipl, true, ih);
        *(ih->ih_map) |= INTMAP_V|(CPU_UPAID << INTMAP_TID_SHIFT);
        
@@ -580,6 +581,8 @@
        ih->ih_number = vec;
        ih->ih_ivec = 0;
        ih->ih_pil = (1<<ipl);
+       ih->ih_pending = 0;
+
        intr_establish(ipl, level != IPL_VM, ih);
        return (ih);
 }
diff -r 6b8e6df45a29 -r 4a33189c5c9f sys/arch/sparc64/dev/schizo.c
--- a/sys/arch/sparc64/dev/schizo.c     Fri Aug 12 06:40:10 2011 +0000
+++ b/sys/arch/sparc64/dev/schizo.c     Fri Aug 12 06:41:15 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: schizo.c,v 1.25 2011/07/20 12:06:00 macallan Exp $     */
+/*     $NetBSD: schizo.c,v 1.26 2011/08/12 06:41:16 mrg Exp $  */
 /*     $OpenBSD: schizo.c,v 1.55 2008/08/18 20:29:37 brad Exp $        */
 
 /*
@@ -533,6 +533,8 @@
        ih->ih_fun = handler;
        ih->ih_pil = (1<<ipl);
        ih->ih_number = INTVEC(schizo_pbm_read(pbm, mapoff));
+       ih->ih_pending = 0;
+
        intr_establish(ipl, ipl != IPL_VM, ih);
 
        schizo_pbm_write(pbm, mapoff,
@@ -787,6 +789,7 @@
        ih->ih_arg = arg;
        ih->ih_pil = level;
        ih->ih_number = ino;
+       ih->ih_pending = 0;
 
        DPRINTF(SDB_INTR, (
            "; installing handler %p arg %p with inr %x pil %u\n",



Home | Main Index | Thread Index | Old Index