Re: "sparc_cpu_model" undefined

Murray Stokely <[email protected]>
Newsgroups org.kernel.vger.ultralinux
Message-ID <marc-linux-ultrasparc-95878815411823@msgid-missing>
On Fri, 19 May 2000, Pete Zaitcev wrote:
% Imagine for a second that we make an <asm/io.h> on sparc that
% gets included in your program without errors. What makes you think
% that inb/outb there may be useful to you, even after ioperm() ?
% They easily may happen to be defined as stba/lduba instructions,
% or may require port address to be offset.

  Ok, so how do I get around these problems to write a few bytes
directly to an IO port.  As an example, I would like to write a few
bytes to the parallel port to control a LED or program a
microcontroller.  With Linux/x86 I just call ioperm() and then outb().
How do I do this under Linux/sparc?

% Programs that resort to direct I/O must carry machine and system
% dependent parts with them, including definitions of inb/outb.
% If they do not, we cannot help it.

  You feel this is always the case?  That inb/outb should not be a
function of the OS libraries/headers?

	 Murray
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.