From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: RedHat AXP list <axp-list@redhat.com>
Subject: Re: Can't find outb() on Alpha
Date: Sat, 15 Aug 1998 16:21:31 +0200 (MET DST) [thread overview]
Message-ID: <Pine.GSO.3.96.980815160331.25038B-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.3.96.980814004119.3708F-100000@earth.terran.org>
On Fri, 14 Aug 1998, B. James Phillippe wrote:
> Trying to port some Intel code to the Alpha. The code includes
> <sys/io.h> on Intel/glibc-2.0 and uses inb() and outb() without problems.
> Looks like on Alpha these are macros defined to use true functions _outb()
> and _inb(). My program won't link due to unresolved symbols and I can't
> seem to find any file containing these functions anywhere on my disk. I
> have looked in linux-2.0.35 and linux-2.1.115. My system is Avanti (Apecs)
> running RedHat-5.1 w/glibc-2.0.
For glibc 2.0.7 _outb() is a function exported from the library as is
outb() (one of them is an alias to the other, AFAIR). Just do `objdump -T
/lib/libc-2.0.7.so' and search for it.
For glibc 2.0.94 there is only outb() exported from the library so you
have to "#undef outb" after including <sys/io.h>.
You may want to explore the SVGATextMode package as it uses direct I/O
and works on Alpha (and is somewhat less complicated than XFree86).
It may be also quite interesting to see how 'ioperm()' and I/O functions
are actually implemented on Alpha.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
prev parent reply other threads:[~1998-08-15 14:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-14 7:45 Can't find outb() on Alpha B. James Phillippe
1998-08-15 14:21 ` Maciej W. Rozycki [this message]
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