Date: Thu, 29 Oct 1998 10:17:04 -0800 From: Parag Patel <parag@cgt.com> To: current@FreeBSD.ORG Cc: tjm@codegen.com, eric@needhams.com Subject: Re: Mod to doscmd's port.c to directly access parallel ports Message-ID: <199810291817.KAA24369@pinhead.parag.codegen.com> In-Reply-To: Your message of "Wed, 28 Oct 1998 16:57:31 PST."
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810291817.KAA24369>
