summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-10 21:09:41 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-10 21:09:41 +0000
commit92b41eb4aa3268d4f0baa87d2eabc673297576e5 (patch)
tree80a07bbb7a97b0006af0f219844c5805b8226c97 /sys/arch/loongson
parentd1fd3ec67b39df9610549cad8c610ff805095ae8 (diff)
Blame the right interrupt bit in `spurious interrupt' messages.
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/dev/bonito.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/loongson/dev/bonito.c b/sys/arch/loongson/dev/bonito.c
index 7780cab46a1..2bb0e19e953 100644
--- a/sys/arch/loongson/dev/bonito.c
+++ b/sys/arch/loongson/dev/bonito.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bonito.c,v 1.8 2010/02/09 21:31:46 miod Exp $ */
+/* $OpenBSD: bonito.c,v 1.9 2010/02/10 21:09:40 miod Exp $ */
/* $NetBSD: bonito_mainbus.c,v 1.11 2008/04/28 20:23:10 martin Exp $ */
/* $NetBSD: bonito_pci.c,v 1.5 2008/04/28 20:23:28 martin Exp $ */
@@ -638,7 +638,8 @@ bonito_intr(uint32_t hwpend, struct trap_frame *frame)
}
}
if (rc == 0)
- printf("spurious interrupt %d\n", bit);
+ printf("spurious interrupt %d\n",
+ bitno);
if ((isr ^= mask) == 0)
goto done;
@@ -732,7 +733,7 @@ bonito_isa_intr(uint32_t hwpend, struct trap_frame *frame)
}
if (rc == 0)
printf("spurious isa interrupt %d\n",
- bit);
+ bitno);
bonito_isa_specific_eoi(bitno);