summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-09-23 19:59:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-09-23 19:59:09 +0000
commit00f332f07d139e30aa328b7fdc84b1c36b14cfad (patch)
tree377d171913e4532bb790f919ffe28a826a592e24 /sys/dev
parent77cbde2c89b28b7fca9cf8bda8b6d53d542f9312 (diff)
Disable SPLUSBCHECK for now, as these turn out to be harmful on sparc64.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index f1adbcf11a5..1fcc956c560 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.h,v 1.31 2009/08/30 19:15:40 miod Exp $ */
+/* $OpenBSD: usbdi.h,v 1.32 2009/09/23 19:59:08 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,10 +242,18 @@ struct usb_attach_arg {
/* XXX Perhaps USB should have its own levels? */
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
#define splusb splsoftnet
+#if 0
#define SPLUSBCHECK splsoftassert(IPL_SOFTNET)
#else
+#define SPLUSBCHECK do { /* nothing */ } while (0)
+#endif
+#else
#define splusb splbio
+#if 0
#define SPLUSBCHECK splassert(IPL_BIO)
+#else
+#define SPLUSBCHECK do { /* nothing */ } while (0)
+#endif
#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */
#define splhardusb splbio
#define IPL_USB IPL_BIO