summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 14:58:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-09-13 14:58:21 +0000
commit1fa97bc81a98577de1b6d3cb12eb1536229e5f0e (patch)
tree298ffd01de052ac61647c2d30bb0d2f438eddb8c /sys/arch
parentecf2d60714097d2c86bde0aa19fae86c45405743 (diff)
intr_barrier(9) for hppa.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/intr.c8
-rw-r--r--sys/arch/hppa/include/intr.h4
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/intr.c b/sys/arch/hppa/hppa/intr.c
index e39b519e21f..5739b92acbb 100644
--- a/sys/arch/hppa/hppa/intr.c
+++ b/sys/arch/hppa/hppa/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.48 2015/09/08 07:14:04 deraadt Exp $ */
+/* $OpenBSD: intr.c,v 1.49 2015/09/13 14:58:20 kettenis Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -308,6 +308,12 @@ cpu_intr(void *v)
mtctl(frame->tf_eiem, CR_EIEM);
}
+void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}
+
void *
softintr_establish(int pri, void (*handler)(void *), void *arg)
{
diff --git a/sys/arch/hppa/include/intr.h b/sys/arch/hppa/include/intr.h
index 11ffb7023e1..340b52918e3 100644
--- a/sys/arch/hppa/include/intr.h
+++ b/sys/arch/hppa/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.41 2015/02/11 01:55:40 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.42 2015/09/13 14:58:20 kettenis Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -87,6 +87,8 @@ void splassert_check(int, const char *);
void cpu_intr_init(void);
void cpu_intr(void *);
+void intr_barrier(void *);
+
static __inline int
spllower(int ncpl)
{