-/* $OpenBSD: intr.h,v 1.46 2016/06/13 01:26:14 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.47 2018/01/13 15:18:11 mpi Exp $ */
/* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */
/*-
#define IPL_SOFTNET 2 /* network software interrupts */
#define IPL_SOFT 3 /* other software interrupts */
+#define IPL_MPFLOOR IPL_AUDIO
+
#define IPL_MPSAFE 0 /* no "mpsafe" interrupts */
#define IST_UNUSABLE -1 /* interrupt cannot be used */
-/* $OpenBSD: mutex.h,v 1.9 2018/01/04 11:03:48 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.10 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_AUDIO) ? IPL_AUDIO : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intrdefs.h,v 1.16 2016/06/22 01:12:38 mikeb Exp $ */
+/* $OpenBSD: intrdefs.h,v 1.17 2018/01/13 15:18:11 mpi Exp $ */
/* $NetBSD: intrdefs.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */
#ifndef _AMD64_INTRDEFS_H
#define IPL_IPI 0xe /* inter-processor interrupts */
#define NIPL 16
+#define IPL_MPFLOOR IPL_TTY
#define IPL_MPSAFE 0x100
/* Interrupt sharing types. */
-/* $OpenBSD: mutex.h,v 1.9 2018/01/12 09:19:32 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.10 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_TTY) ? IPL_TTY : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intr.h,v 1.6 2017/03/09 14:23:59 kettenis Exp $ */
+/* $OpenBSD: intr.h,v 1.7 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
#define IPL_IPI 12 /* interprocessor interrupt */
#define NIPL 13 /* number of levels */
+#define IPL_MPFLOOR IPL_TTY
/* Interrupt priority 'flags'. */
#define IPL_MPSAFE 0 /* no "mpsafe" interrupts */
-/* $OpenBSD: mutex.h,v 1.3 2018/01/12 09:19:33 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.4 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_TTY) ? IPL_TTY : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intr.h,v 1.43 2017/05/19 00:49:53 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.44 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
#define IPL_IPI 11
#define IPL_NESTED 12 /* pseudo-level for sub-tables */
+#define IPL_MPFLOOR IPL_AUDIO
#define IPL_MPSAFE 0 /* no "mpsafe" interrupts */
#define IST_NONE 0
-/* $OpenBSD: mutex.h,v 1.8 2018/01/04 11:03:48 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.9 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_AUDIO) ? IPL_AUDIO : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#ifdef WITNESS
#define MUTEX_INITIALIZER_FLAGS(ipl, name, flags) \
{ MUTEX_UNLOCKED, __MUTEX_IPL((ipl)), 0, NULL, \
-/* $OpenBSD: intrdefs.h,v 1.15 2016/10/21 06:20:58 mlarkin Exp $ */
+/* $OpenBSD: intrdefs.h,v 1.16 2018/01/13 15:18:11 mpi Exp $ */
/* $NetBSD: intrdefs.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */
#ifndef _I386_INTRDEFS_H
#define IPL_HIGH MAKEIPL(10) /* everything */
#define IPL_IPI MAKEIPL(11) /* interprocessor interrupt */
+#define IPL_MPFLOOR IPL_TTY
#define IPL_MPSAFE 0x100
/* Interrupt sharing types. */
-/* $OpenBSD: mutex.h,v 1.11 2018/01/12 09:19:33 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.12 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_TTY) ? IPL_TTY : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intr.h,v 1.9 2014/12/28 13:03:18 aoyama Exp $ */
+/* $OpenBSD: intr.h,v 1.10 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (C) 2000 Steve Murphree, Jr.
* All rights reserved.
#define IPL_NMI 7
#define IPL_ABORT 7
+#define IPL_MPFLOOR IPL_TTY
#define IPL_MPSAFE 0 /* no "mpsafe" interrupts */
#include <m88k/intr.h>
#ifndef _M88K_MUTEX_H_
#define _M88K_MUTEX_H_
-/* $OpenBSD: mutex.h,v 1.6 2018/01/04 11:03:48 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.7 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat.
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_TTY) ? IPL_TTY : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intr.h,v 1.53 2017/07/25 03:46:59 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.54 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA.
#define IPL_HIGH 12
#define IPL_NUM 13
+#define IPL_MPFLOOR IPL_TTY
#define IPL_MPSAFE 0x100
#define IST_NONE 0
-/* $OpenBSD: mutex.h,v 1.7 2018/01/12 09:19:33 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.8 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_TTY) ? IPL_TTY : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif
-/* $OpenBSD: intr.h,v 1.20 2016/08/17 10:49:09 dlg Exp $ */
+/* $OpenBSD: intr.h,v 1.21 2018/01/13 15:18:11 mpi Exp $ */
/* $NetBSD: intr.h,v 1.8 2001/01/14 23:50:30 thorpej Exp $ */
/*-
#define splzs() splserial()
+#define IPL_MPFLOOR IPL_SERIAL
#define IPL_MPSAFE 0x100
int splraise(int);
-/* $OpenBSD: mutex.h,v 1.6 2018/01/12 09:19:33 mpi Exp $ */
+/* $OpenBSD: mutex.h,v 1.7 2018/01/13 15:18:11 mpi Exp $ */
/*
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
*/
#ifdef MULTIPROCESSOR
#define __MUTEX_IPL(ipl) \
- (((ipl) > IPL_NONE && (ipl) < IPL_SERIAL) ? IPL_SERIAL : (ipl))
+ (((ipl) > IPL_NONE && (ipl) < IPL_MPFLOOR) ? IPL_MPFLOOR : (ipl))
#else
#define __MUTEX_IPL(ipl) (ipl)
#endif