From owner-freebsd-current Thu Oct 29 10:17:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA26477 for freebsd-current-outgoing; Thu, 29 Oct 1998 10:17:01 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pinhead.parag.codegen.com (ppp-asfm08--172.sirius.net [205.134.241.172]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA26471 for ; Thu, 29 Oct 1998 10:16:59 -0800 (PST) (envelope-from parag@pinhead.parag.codegen.com) Received: from pinhead.parag.codegen.com (localhost.parag.codegen.com [127.0.0.1]) by pinhead.parag.codegen.com (8.9.1/8.8.8) with ESMTP id KAA24369; Thu, 29 Oct 1998 10:17:04 -0800 (PST) (envelope-from parag@pinhead.parag.codegen.com) Message-Id: <199810291817.KAA24369@pinhead.parag.codegen.com> X-Mailer: exmh version 2.0.2 2/24/98 To: current@FreeBSD.ORG cc: tjm@codegen.com, eric@needhams.com Subject: Re: Mod to doscmd's port.c to directly access parallel ports In-reply-to: Your message of "Wed, 28 Oct 1998 16:57:31 PST." X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X ]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm X-URL: http://www.codegen.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 29 Oct 1998 10:17:04 -0800 From: Parag Patel Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It was just pointed out to me that I'd screwed up the mod for iounmap(). > static void > iounmap(int port, int cnt) > { >! if (port + cnt >= MAXPORT) { >! errno = ERANGE; >! goto bad; >! } >! if (i386_set_ioperm(port, cnt, 1) < 0) { ^^^ 0 >! bad: >! perror("iounmap"); >! quit(1); >! } > } Oops. I've submitted the proper fix using send-pr. Thanks! Actually, this rather slows down the whole port-access quite a bit. I'm inclined to set the port access on at startup and off on exit. -- Parag To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message