summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-06-20 04:50:24 +0000
committermiod <miod@openbsd.org>2004-06-20 04:50:24 +0000
commitfa22aa50427da07573061819d2b3d829140caedb (patch)
tree17873becbf837371a5ae32b5f46fce2dfaaae208
parentIt's supposed to be #ifdef DIAGNOSTIC, not #ifdef DIAGONSTIC. miod@ tested+ok (diff)
downloadwireguard-openbsd-fa22aa50427da07573061819d2b3d829140caedb.tar.xz
wireguard-openbsd-fa22aa50427da07573061819d2b3d829140caedb.zip
Silence intr_establish a bit more; makes the dmesg on U2 suddenly edible.
ok deraadt@
-rw-r--r--sys/arch/sparc64/sparc64/intr.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c
index e3bb64195fd..0f733452011 100644
--- a/sys/arch/sparc64/sparc64/intr.c
+++ b/sys/arch/sparc64/sparc64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.20 2004/01/10 09:10:07 deraadt Exp $ */
+/* $OpenBSD: intr.c,v 1.21 2004/06/20 04:50:24 miod Exp $ */
/* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */
/*
@@ -280,15 +280,18 @@ intr_establish(level, ih)
if(ih->ih_map) {
id = CPU_UPAID;
m = *ih->ih_map;
- if(INTTID(m) != id) {
+ if (INTTID(m) != id) {
+#ifdef DEBUG
printf("\nintr_establish: changing map 0x%llx -> ", m);
+#endif
m = (m & ~INTMAP_TID) | (id << INTTID_SHIFT);
+#ifdef DEBUG
printf("0x%llx (id=%llx) ", m, id);
+#endif
}
m |= INTMAP_V;
*ih->ih_map = m;
- }
- else {
+ } else {
#ifdef DEBUG
printf( "\n**********************\n"
"********************** intr_establish: no map register\n"