Hello,
Recently Linus posted elcr.c that looks like this:
#include <asm/io.h>
int main()
{
unsigned short x;
int i;
iopl(3);
x = inb(0x4d0) | (256*inb(0x4d1));
printf("%x\n", x);
for (i = 0; i < 16; i++) {
printf("%2d: %d\n", i, x&1);
x >>= 1;
}
}
but if I try to compile it - it won't link because inb() is unresolved.
My /usr/include/asm points where it should and the kernel is 2.1.124 (and
io.h in it looks as good as usual) so I don't know why it fails.
My system is RedHat 5.1 with gcc 2.7.2.3 and gas 2.9.1, glibc2.0.7
Any ideas what trivial thing I am missing here?
regards,
------ -------- --------- -------- -- - -- ---- --
Tigran A. Aivazian | http://www.sco.com
Escalations Research Group | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd | Email: [EMAIL PROTECTED]