From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17790 invoked from network); 16 Mar 1999 13:41:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 1999 13:41:42 -0000 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [153.19.170.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA16484 for ; Tue, 16 Mar 1999 08:27:36 -0500 Received: from localhost (macro@localhost) by delta.ds2.pg.gda.pl (8.8.8/8.8.8) with SMTP id OAA04432 for ; Tue, 16 Mar 1999 14:21:03 +0100 (MET) Date: Tue, 16 Mar 1999 14:21:02 +0100 (MET) From: "Maciej W. Rozycki" To: RedHat AXP list Subject: Re: Newbie to port-IO programming on Alpha In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 15 Mar 1999, B. James Phillippe wrote: > program compiles and executes normally). All that I can see in > is that ioperm and iopl are declared as extern. This doesn't even make > sense for Alpha, so I assume if those functions are defined in the glibc > that they're noops geared only to aid in porting(?) 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. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +