summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/iommureg.h4
-rw-r--r--sys/arch/sparc64/dev/psycho.c6
-rw-r--r--sys/arch/sparc64/sparc64/intr.c5
3 files changed, 8 insertions, 7 deletions
diff --git a/sys/arch/sparc64/dev/iommureg.h b/sys/arch/sparc64/dev/iommureg.h
index 66d1df1fa4a..92afce82289 100644
--- a/sys/arch/sparc64/dev/iommureg.h
+++ b/sys/arch/sparc64/dev/iommureg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommureg.h,v 1.6 2003/03/06 08:26:08 henric Exp $ */
+/* $OpenBSD: iommureg.h,v 1.7 2003/05/16 17:18:14 jason Exp $ */
/* $NetBSD: iommureg.h,v 1.6 2001/07/20 00:07:13 eeh Exp $ */
/*
@@ -166,4 +166,6 @@ struct iommu_strbuf {
#define INTPCIOBINOX(x) ((x)&0x1f) /* OBIO ino index (for PCI machines) */
#define INTPCIINOX(x) (((x)&0x1c)>>2) /* PCI ino index */
+#define INTCLR_IDLE 0
+
#endif /* _SPARC64_DEV_IOMMUREG_H_ */
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index b879cba10cf..3ea1aa77d15 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.31 2003/05/16 06:59:12 henric Exp $ */
+/* $OpenBSD: psycho.c,v 1.32 2003/05/16 17:18:14 jason Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
@@ -1182,10 +1182,6 @@ psycho_intr_establish(bus_space_tag_t t, bus_space_tag_t t0, int ihandle,
DPRINTF(PDB_INTR, ("; reread intrmap = %016qx",
(unsigned long long)(intrmap = *intrmapptr)));
}
- if (intrclrptr) {
- /* set state to IDLE */
- *intrclrptr = 0;
- }
return (ih);
}
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c
index 72e559413d2..ce208ac8711 100644
--- a/sys/arch/sparc64/sparc64/intr.c
+++ b/sys/arch/sparc64/sparc64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.13 2003/03/20 23:05:30 henric Exp $ */
+/* $OpenBSD: intr.c,v 1.14 2003/05/16 17:18:15 jason Exp $ */
/* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */
/*
@@ -332,6 +332,9 @@ intr_establish(level, ih)
#endif
}
+ if (ih->ih_clr != NULL) /* Set interrupt to idle */
+ ih->ih_clr = INTCLR_IDLE;
+
splx(s);
}