diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-13 14:06:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-13 14:06:41 +0000 |
commit | 496bf0a9400469af912416cf27b71dadd7f06988 (patch) | |
tree | a283ba170454ace0656b329049bfada1df5dd96a /sys/arch | |
parent | 999e6770f8022d2fc02fb28ad511cbfd28d28508 (diff) |
intr_barrier(9) for macppc and socppc.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/include/intr.h | 5 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/intr.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/intr.h b/sys/arch/powerpc/include/intr.h index fdb0e951fb9..7ddcfafda04 100644 --- a/sys/arch/powerpc/include/intr.h +++ b/sys/arch/powerpc/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.51 2015/06/24 11:58:06 mpi Exp $ */ +/* $OpenBSD: intr.h,v 1.52 2015/09/13 14:06:40 kettenis Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA. @@ -147,7 +147,6 @@ struct soft_intrq { struct mutex siq_mtx; }; - void softintr_disestablish(void *); void softintr_dispatch(int); void *softintr_establish(int, void (*)(void *), void *); @@ -189,6 +188,8 @@ extern int ppc_configed_intr_cnt; #define MAX_PRECONF_INTR 16 extern struct intrhand ppc_configed_intr[MAX_PRECONF_INTR]; +void intr_barrier(void *); + #define PPC_IPI_NOP 0 #define PPC_IPI_DDB 1 diff --git a/sys/arch/powerpc/powerpc/intr.c b/sys/arch/powerpc/powerpc/intr.c index 35b62911893..84718250ad6 100644 --- a/sys/arch/powerpc/powerpc/intr.c +++ b/sys/arch/powerpc/powerpc/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.8 2015/01/04 13:01:42 mpi Exp $ */ +/* $OpenBSD: intr.c,v 1.9 2015/09/13 14:06:40 kettenis Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA. @@ -148,6 +148,12 @@ ppc_intr_typename(int type) } } +void +intr_barrier(void *ih) +{ + sched_barrier(NULL); +} + #ifdef DIAGNOSTIC void splassert_check(int wantipl, const char *func) |