summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/include/intr.h3
-rw-r--r--sys/arch/sh/sh/interrupt.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sh/include/intr.h b/sys/arch/sh/include/intr.h
index eabf78662ad..283dc96bc60 100644
--- a/sys/arch/sh/include/intr.h
+++ b/sys/arch/sh/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: intr.h,v 1.2 2006/10/23 19:44:54 drahn Exp $ */
/* $NetBSD: intr.h,v 1.22 2006/01/24 23:51:42 uwe Exp $ */
/*-
@@ -75,6 +75,7 @@ struct intc_intrhand {
int ih_evtcode; /* INTEVT or INTEVT2(SH7709/SH7709A) */
int ih_idx; /* evtcode -> intrhand mapping */
struct evcount ih_count;
+ char *ih_name;
};
/* from 0x200 by 0x20 -> from 0 by 1 */
diff --git a/sys/arch/sh/sh/interrupt.c b/sys/arch/sh/sh/interrupt.c
index ab377f13f17..5871aaf03ca 100644
--- a/sys/arch/sh/sh/interrupt.c
+++ b/sys/arch/sh/sh/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.2 2006/10/06 21:16:57 mickey Exp $ */
+/* $OpenBSD: interrupt.c,v 1.3 2006/10/23 19:44:54 drahn Exp $ */
/* $NetBSD: interrupt.c,v 1.18 2006/01/25 00:02:57 uwe Exp $ */
/*-
@@ -137,6 +137,7 @@ intc_intr_establish(int evtcode, int trigger, int level,
ih->ih_arg = ih_arg;
ih->ih_level = level << 4; /* convert to SR.IMASK format. */
ih->ih_evtcode = evtcode;
+ ih->ih_name = (char *)name; /* XXX strdup? */
/* Map interrupt handler */
EVTCODE_TO_IH_INDEX(evtcode) = ih->ih_idx;