summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 20:37:29 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 20:37:29 +0000
commitb74305af1378da5b206dfbe717c5569f3903fb31 (patch)
tree10e38999cb31185c00b93f15635c32fad30fc930 /sys
parentccf844efecb4f890a48d7a23e377ee9a36a986bf (diff)
intr_barrier(9) for alpha.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/interrupt.c8
-rw-r--r--sys/arch/alpha/include/intr.h4
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/interrupt.c b/sys/arch/alpha/alpha/interrupt.c
index b56a4d431b0..de565673f87 100644
--- a/sys/arch/alpha/alpha/interrupt.c
+++ b/sys/arch/alpha/alpha/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.36 2015/09/02 14:07:41 deraadt Exp $ */
+/* $OpenBSD: interrupt.c,v 1.37 2015/09/13 20:37:28 kettenis Exp $ */
/* $NetBSD: interrupt.c,v 1.46 2000/06/03 20:47:36 thorpej Exp $ */
/*-
@@ -595,6 +595,12 @@ softintr_schedule(void *arg)
mtx_leave(&si->softintr_mtx);
}
+void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}
+
int
_splraise(int s)
{
diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h
index 49d2d936c97..759b0ec66a7 100644
--- a/sys/arch/alpha/include/intr.h
+++ b/sys/arch/alpha/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.44 2015/02/11 01:13:22 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.45 2015/09/13 20:37:28 kettenis Exp $ */
/* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */
/*-
@@ -141,6 +141,8 @@ struct scbvec {
#ifdef _KERNEL
+void intr_barrier(void *);
+
/* SPL asserts */
#ifdef DIAGNOSTIC
/*