Date: Fri, 10 Apr 1998 10:16:11 +0530 (IST) From: Kapil Chowksey <kchowksey@hss.hns.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: i386/6260: patch: DEVFS and psm Message-ID: <199804100446.KAA05525@tarang.hss.hns.com>
index | next in thread | raw e-mail
>Number: 6260
>Category: i386
>Synopsis: patch: DEVFS and psm
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 9 21:50:00 PDT 1998
>Last-Modified:
>Originator: Kapil Chowksey
>Organization:
Hughes Software Systems
>Release: FreeBSD 3.0-CURRENT i386
>Environment:
FreeBSD elbereth.hss.hns.com 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Wed Mar 4 09:41:22 IST 1998 kch@elbereth.hss.hns.com:/usr/src/sys/compile/ELBERETH i386
with julian's SLICE patches.
>Description:
In pre-devfs days, /dev/psm0 had always been a non-blocking
device. But with devfs, currently, /dev/psm0 is the blocking device
and /dev/npsm0 is the non-blocking one.
DEVFS must stay consistent with the older behaviour.
>How-To-Repeat:
Install XFree86 with /dev/psm0 as the mouse device; X hangs with no
keyboard activity possible.
>Fix:
This patch makes /dev/psm0 a non-blocking device; and /dev/bpsm0 a
blocking one. Tested with moused and XFree86 3.3.1.
--- /sys/i386/isa/psm.c~ Sun Jan 25 16:48:45 1998
+++ /sys/i386/isa/psm.c Sat Mar 28 18:33:02 1998
@@ -161,7 +161,7 @@
int button; /* the latest button state */
#ifdef DEVFS
void *devfs_token;
- void *n_devfs_token;
+ void *b_devfs_token;
#endif
#ifdef PSM_HOOKAPM
struct apmhook resumehook;
@@ -981,11 +981,11 @@
/* Done */
#ifdef DEVFS
sc->devfs_token =
- devfs_add_devswf(&psm_cdevsw, PSM_MKMINOR(unit, TRUE),
- DV_CHR, 0, 0, 0666, "psm%d", unit);
- sc->n_devfs_token =
devfs_add_devswf(&psm_cdevsw, PSM_MKMINOR(unit, FALSE),
- DV_CHR, 0, 0, 0666, "npsm%d", unit);
+ DV_CHR, 0, 0, 0666, "psm%d", unit);
+ sc->b_devfs_token =
+ devfs_add_devswf(&psm_cdevsw, PSM_MKMINOR(unit, TRUE),
+ DV_CHR, 0, 0, 0666, "bpsm%d", unit);
#endif /* DEVFS */
#ifdef PSM_HOOKAPM
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804100446.KAA05525>
