From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25318 invoked from network); 15 Aug 1998 14:22:15 -0000 Received: from delta.ds2.pg.gda.pl (macro@153.19.170.1) by mail2.redhat.com with SMTP; 15 Aug 1998 14:22:15 -0000 Received: from localhost (macro@localhost) by delta.ds2.pg.gda.pl (8.8.8/8.8.8) with SMTP id QAA26238 for ; Sat, 15 Aug 1998 16:21:31 +0200 (MET DST) Date: Sat, 15 Aug 1998 16:21:31 +0200 (MET DST) From: "Maciej W. Rozycki" To: RedHat AXP list Subject: Re: Can't find outb() on Alpha In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 14 Aug 1998, B. James Phillippe wrote: > Trying to port some Intel code to the Alpha. The code includes > 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 . 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 +