summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 20:38:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 20:38:46 +0000
commit87b2c2d9d49711719bea9b779973c3303e3df034 (patch)
tree41ae0d87dae1456d88db64dd50866039f2ff4576 /sys
parentb74305af1378da5b206dfbe717c5569f3903fb31 (diff)
intr_barrier(9) for loongson, octeon and sgi.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/loongson/include/intr.h4
-rw-r--r--sys/arch/mips64/mips64/interrupt.c8
-rw-r--r--sys/arch/octeon/include/intr.h4
-rw-r--r--sys/arch/sgi/include/intr.h4
4 files changed, 16 insertions, 4 deletions
diff --git a/sys/arch/loongson/include/intr.h b/sys/arch/loongson/include/intr.h
index b624c15d6b6..b14f15d5f29 100644
--- a/sys/arch/loongson/include/intr.h
+++ b/sys/arch/loongson/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.6 2015/07/08 13:37:31 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.7 2015/09/13 20:38:45 kettenis Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -166,6 +166,8 @@ struct intrhand {
struct evcount ih_count;
};
+void intr_barrier(void *);
+
/*
* Low level interrupt dispatcher registration data.
*/
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index 821f7fb71af..0ae3daf5ea1 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.64 2014/09/30 06:51:58 jmatthew Exp $ */
+/* $OpenBSD: interrupt.c,v 1.65 2015/09/13 20:38:45 kettenis Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -191,6 +191,12 @@ set_intr(int pri, uint32_t mask,
}
void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}
+
+void
dummy_splx(int newcpl)
{
/* Dummy handler */
diff --git a/sys/arch/octeon/include/intr.h b/sys/arch/octeon/include/intr.h
index 26db9ca4650..c5e78f6bcf6 100644
--- a/sys/arch/octeon/include/intr.h
+++ b/sys/arch/octeon/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.4 2015/07/08 13:37:31 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.5 2015/09/13 20:38:45 kettenis Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -173,6 +173,8 @@ struct intrhand {
#define IH_ALLOCATED 0x01
};
+void intr_barrier(void *);
+
/*
* Low level interrupt dispatcher registration data.
*/
diff --git a/sys/arch/sgi/include/intr.h b/sys/arch/sgi/include/intr.h
index 92125694f94..8b1a5e14fa7 100644
--- a/sys/arch/sgi/include/intr.h
+++ b/sys/arch/sgi/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.44 2015/07/08 13:37:31 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.45 2015/09/13 20:38:45 kettenis Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -168,6 +168,8 @@ struct intrhand {
#define IH_ALLOCATED 0x01
};
+void intr_barrier(void *);
+
/*
* Low level interrupt dispatcher registration data.
*/