From owner-freebsd-arch Fri Feb 9 11:12: 2 2001 Delivered-To: freebsd-arch@freebsd.org Received: from grendel.bsdi.com (grendel.twistedbit.com [199.79.183.5]) by hub.freebsd.org (Postfix) with ESMTP id 0BB8037B69F; Fri, 9 Feb 2001 11:11:42 -0800 (PST) Received: from grendel.bsdi.com (cp@localhost.bsdi.com [127.0.0.1]) by grendel.bsdi.com (8.11.1/8.9.3) with ESMTP id f19JBfk06298; Fri, 9 Feb 2001 12:11:41 -0700 (MST) (envelope-from cp@grendel.bsdi.com) Message-Id: <200102091911.f19JBfk06298@grendel.bsdi.com> To: John Baldwin Cc: freebsd-arch@FreeBSD.ORG Subject: Re: usb, clists, spltty, splbio In-reply-to: Your message of "Thu, 08 Feb 2001 21:14:08 PST." From: Chuck Paterson Date: Fri, 09 Feb 2001 12:11:41 -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The following code segment is from the top the hid open routine. I'll start running this code this afternoon. This is one of those cases where checking it into current does zero good. Chuck Index: uhid.c =================================================================== RCS file: /cp/cvs.freebsd/src/sys/dev/usb/uhid.c,v retrieving revision 1.27.2.4 diff -u -r1.27.2.4 uhid.c --- uhid.c 2000/10/31 22:31:29 1.27.2.4 +++ uhid.c 2001/02/09 19:06:36 @@ -375,6 +375,18 @@ { struct uhid_softc *sc; usbd_status err; +#if defined(__FreeBSD__) && defined(__i386__) + static int hid_opened; + + if (hid_opened == 0) { + int s; + s = splhigh(); + tty_imask |= bio_imask; + update_intr_masks(); + splx(s); + hid_opened = 1; + } +#endif USB_GET_SC_OPEN(uhid, UHIDUNIT(dev), sc); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message