From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28852 invoked from network); 16 Mar 1999 17:35:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 1999 17:35:30 -0000 Received: from earth.terran.org (bryan@earth.terran.org [216.39.144.215]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA28242 for ; Tue, 16 Mar 1999 12:25:52 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id JAA18264 for ; Tue, 16 Mar 1999 09:25:50 -0800 Date: Tue, 16 Mar 1999 09:25:50 -0800 (PST) From: "B. James Phillippe" To: RedHat AXP list Subject: Re: Newbie to port-IO programming on Alpha In-Reply-To: Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 16 Mar 1999, Maciej W. Rozycki wrote: > Ioperm() and iopl() use mprotect() to permit or deny access to I/O port > ranges. These functions as well as libc's _in[bwl]() and _out[bwl]() > make use of /dev/mem mmap()ed in a way depending on contents read from > /proc/cpuinfo or /etc/alpha_systype (in this order of preference). > > From applications' point of view all these functions perform in exactly > the same way as their ia32 counterparts which make use of CPU features. Illuminating. I just tried it and it works, as you and Martin said it would. I guess I need to read up on glibc. ;) -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan