Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Can't find outb() on Alpha
@ 1998-08-14  7:45 B. James Phillippe
  1998-08-15 14:21 ` Maciej W. Rozycki
  0 siblings, 1 reply; 2+ messages in thread
From: B. James Phillippe @ 1998-08-14  7:45 UTC (permalink / raw)
  To: RedHat AXP list

Hello,

	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.

thanks for any advice,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux, networks, C++ development
http://earth.terran.org/~bryan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can't find outb() on Alpha
  1998-08-14  7:45 Can't find outb() on Alpha B. James Phillippe
@ 1998-08-15 14:21 ` Maciej W. Rozycki
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej W. Rozycki @ 1998-08-15 14:21 UTC (permalink / raw)
  To: RedHat AXP list

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        +


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-15 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-14  7:45 Can't find outb() on Alpha B. James Phillippe
1998-08-15 14:21 ` Maciej W. Rozycki

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