summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-03-17 05:06:37 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-03-17 05:06:37 +0000
commit2e2016c8b3946d3f8e9553a13b1279644febad9c (patch)
treec5514c6dac1b397922f8f3324c7e65cfd22ee65f /sys/arch
parentc2c92cda5724f77d8e7b77d707fe91d8fc0e6ce3 (diff)
Move intr_barrier(9) to the platform level so that it can be customized.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/loongson/loongson/machdep.c8
-rw-r--r--sys/arch/mips64/mips64/interrupt.c8
-rw-r--r--sys/arch/octeon/dev/octeon_intr.c8
-rw-r--r--sys/arch/sgi/sgi/machdep.c8
4 files changed, 22 insertions, 10 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index 0d605aeae7b..f7074a8c817 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.84 2019/01/19 20:45:06 tedu Exp $ */
+/* $OpenBSD: machdep.c,v 1.85 2019/03/17 05:06:36 visa Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
@@ -1259,6 +1259,12 @@ pmoncnputc(dev_t dev, int c)
pmon_printf("%c", c);
}
+void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}
+
#ifdef MULTIPROCESSOR
void
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index d43ebc9b686..e1e7aa3c5df 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.70 2019/03/16 06:23:03 visa Exp $ */
+/* $OpenBSD: interrupt.c,v 1.71 2019/03/17 05:06:36 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -182,12 +182,6 @@ 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/dev/octeon_intr.c b/sys/arch/octeon/dev/octeon_intr.c
index 22a1b3bb2ae..529875a7d76 100644
--- a/sys/arch/octeon/dev/octeon_intr.c
+++ b/sys/arch/octeon/dev/octeon_intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: octeon_intr.c,v 1.23 2019/03/16 16:35:49 visa Exp $ */
+/* $OpenBSD: octeon_intr.c,v 1.24 2019/03/17 05:06:36 visa Exp $ */
/*
* Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se)
@@ -169,6 +169,12 @@ octeon_intr_disestablish_fdt(void *cookie)
octeon_intr_disestablish(cookie);
}
+void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}
+
#ifdef MULTIPROCESSOR
/*
* Inter-processor interrupt control logic.
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index a573046b98f..272883332c8 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.158 2017/12/30 20:46:59 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.159 2019/03/17 05:06:36 visa Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -1006,3 +1006,9 @@ is_memory_range(paddr_t pa, psize_t len, psize_t limit)
return FALSE;
}
+
+void
+intr_barrier(void *cookie)
+{
+ sched_barrier(NULL);
+}