diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-30 19:23:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-30 19:23:58 +0000 |
commit | 701389a42635590876733b8299f8de9263429650 (patch) | |
tree | 5a7368b3d43efd064a14d86950eb62da0d6791b7 /sys/arch/vax/vxt/vxtbus.c | |
parent | caf27bd13f3eaa668fbf6e898593457cb627dcf4 (diff) |
Better diagnostic messages.
Diffstat (limited to 'sys/arch/vax/vxt/vxtbus.c')
-rw-r--r-- | sys/arch/vax/vxt/vxtbus.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/vax/vxt/vxtbus.c b/sys/arch/vax/vxt/vxtbus.c index 1749ca364f3..cf60cac08d1 100644 --- a/sys/arch/vax/vxt/vxtbus.c +++ b/sys/arch/vax/vxt/vxtbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vxtbus.c,v 1.1 2006/08/27 16:55:41 miod Exp $ */ +/* $OpenBSD: vxtbus.c,v 1.2 2006/08/30 19:23:57 miod Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -32,7 +32,6 @@ struct vxtbus_softc { struct device sc_dev; LIST_HEAD(, vxtbus_ih) sc_intrlist; - struct evcount sc_intrcnt; /* unused */ }; void vxtbus_attach(struct device *, struct device *, void *); @@ -64,7 +63,7 @@ vxtbus_attach(struct device *parent, struct device *self, void *aux) struct bp_conf bp; LIST_INIT(&sc->sc_intrlist); - scb_vecalloc(VXT_INTRVEC, vxtbus_intr, sc, SCB_ISTACK, &sc->sc_intrcnt); + scb_vecalloc(VXT_INTRVEC, vxtbus_intr, sc, SCB_ISTACK, NULL); printf("\n"); @@ -95,6 +94,8 @@ vxtbus_print(void *aux, const char *name) * All device interrupts end up on the same vector, which is controllable * by the SC26C94 chip. * + * Interrupts are handled at spl4 (ipl 0x14). + * * The following routines implement shared interrupts for vxtbus subdevices. */ @@ -148,9 +149,10 @@ vxtbus_intr(void *arg) #ifdef DIAGNOSTIC if (handled == 0) { if (++strayintr == 10) - panic("too many stray interrupts"); + panic("%s: too many stray interrupts", + sc->sc_dev.dv_xname); else - printf("stray interrupt"); + printf("%s: stray interrupt\n", sc->sc_dev.dv_xname); } #endif } |