summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.h
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-08-30 19:15:40 +0000
committermiod <miod@openbsd.org>2009-08-30 19:15:40 +0000
commitaf5d16e89062012fc3488943bc6c7568265458cc (patch)
tree4222967d51a418d1b4b2066b6254f68d76fabd39 /sys/dev/usb/usbdi.h
parentlock the vnode before calling VOP_CLOSE() in msdofs_unmount(). (diff)
downloadwireguard-openbsd-af5d16e89062012fc3488943bc6c7568265458cc.tar.xz
wireguard-openbsd-af5d16e89062012fc3488943bc6c7568265458cc.zip
Reinstate SPLUSBCHECK checks (DIAGNOSTIC-only), but implemented as splassert(),
which is exactly what it was trying to do. Tested on all *hci controllers with a bunch of usb devices by at least ckuethe@ and I.
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r--sys/dev/usb/usbdi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index b89dc40c290..f1adbcf11a5 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.h,v 1.30 2008/06/26 05:42:19 ray Exp $ */
+/* $OpenBSD: usbdi.h,v 1.31 2009/08/30 19:15:40 miod Exp $ */
/* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -242,8 +242,10 @@ struct usb_attach_arg {
/* XXX Perhaps USB should have its own levels? */
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
#define splusb splsoftnet
+#define SPLUSBCHECK splsoftassert(IPL_SOFTNET)
#else
#define splusb splbio
+#define SPLUSBCHECK splassert(IPL_BIO)
#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */
#define splhardusb splbio
#define IPL_USB IPL_BIO