Module Name: src
Committed By: mrg
Date: Fri Aug 12 06:41:16 UTC 2011
Modified Files:
src/sys/arch/sparc64/dev: sbus.c schizo.c
Log Message:
initialise ih_pending
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sparc64/dev/schizo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/sbus.c
diff -u src/sys/arch/sparc64/dev/sbus.c:1.90 src/sys/arch/sparc64/dev/sbus.c:1.91
--- src/sys/arch/sparc64/dev/sbus.c:1.90 Fri Jul 29 08:37:36 2011
+++ src/sys/arch/sparc64/dev/sbus.c Fri Aug 12 06:41:15 2011
@@ -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);
}
Index: src/sys/arch/sparc64/dev/schizo.c
diff -u src/sys/arch/sparc64/dev/schizo.c:1.25 src/sys/arch/sparc64/dev/schizo.c:1.26
--- src/sys/arch/sparc64/dev/schizo.c:1.25 Wed Jul 20 12:06:00 2011
+++ src/sys/arch/sparc64/dev/schizo.c Fri Aug 12 06:41:16 2011
@@ -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",