Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "B. James Phillippe" <bryan@terran.org>
To: RedHat AXP list <axp-list@redhat.com>
Subject: Re: Newbie to port-IO programming on Alpha
Date: Tue, 16 Mar 1999 09:25:50 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.05.9903160750060.18165-100000@earth.terran.org> (raw)
In-Reply-To: <Pine.GSO.3.96.990316140841.18479B-100000@delta.ds2.pg.gda.pl>

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




  reply	other threads:[~1999-03-16 17:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-14  3:36 Newbie to port-IO programming on Alpha Brendan Miller
1999-03-14  9:15 ` B. James Phillippe
1999-03-14 12:50   ` Martin Ostermann
1999-03-14 22:42     ` B. James Phillippe
1999-03-15  5:11       ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller
1999-03-15 13:44         ` Christopher C Chimelis
1999-03-16 18:07         ` Philip Blundell
     [not found]         ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org>
1999-03-29  6:37           ` Brendan Miller
     [not found]             ` <E10RZUl-0007TN-00@fountain.nexus.co.uk>
1999-03-29 16:50               ` Brendan Miller
1999-03-29 17:10                 ` Phil Blundell
1999-03-30  3:11                   ` Brendan Miller
1999-03-30  8:58                     ` Phil Blundell
1999-04-06  5:19                       ` QuickCam supported on Alpha?2 Brendan Miller
1999-04-06  9:03                         ` Phil Blundell
1999-03-15  9:35       ` Newbie to port-IO programming on Alpha Martin Ostermann
1999-03-15 17:18         ` B. James Phillippe
1999-03-16 13:21           ` Maciej W. Rozycki
1999-03-16 17:25             ` B. James Phillippe [this message]
1999-03-16 18:07           ` Philip Blundell
1999-03-14  9:53 ` Bart Warmerdam
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox