Date: Fri, 09 Feb 2001 12:11:41 -0700 From: Chuck Paterson <cp@bsdi.com> To: John Baldwin <jhb@FreeBSD.ORG> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: usb, clists, spltty, splbio Message-ID: <200102091911.f19JBfk06298@grendel.bsdi.com> In-Reply-To: Your message of "Thu, 08 Feb 2001 21:14:08 PST." <XFMail.010208211408.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102091911.f19JBfk06298>