Re: inb & outb woes...

jahurt_at_hotmail.com
Date: 07/12/03


Date: 12 Jul 2003 06:36:05 -0700

Jens.Toerring@physik.fu-berlin.de wrote in message news:<benhp2$7b43o$1@uni-berlin.de>...
> In comp.os.linux.development.apps jahurt@hotmail.com wrote:
> > This is by design... ioperm sets the port access permission bits for
> > the first 0x3ff i/o ports. If I have an address > 0x3ff, then the
> > plan is to call iopl (rather than ioperm), which, according to the man
> > page, grants access to all the i/o ports. At least this is my
> > understanding from the man pages...
>
> Sorry, I was a bit too careless. So I now compiled your program (after
> removing '#include<asm/io.h>' and replacing it by '#include <sys/io.h>'
> (that's where ioperm() and iopl() are declared) and adding '#include
> <stdlib.h>' (for strtol()) to keep the compiler from complaining) and,
> if I run it as root, it works without any error messages getting
> output, both when I read and write. What exactly are you expecting it
> to do and what happens?
> Regards, Jens

Well, I wasn't able to get outb() to work correctly, although now it
seems that the main problem was between the chair and the keyboard :)
Works fine now (knock wood) Thanks for your help



Relevant Pages

  • Re: inb & outb woes...
    ... I was a bit too careless. ... > if I run it as root, it works without any error messages getting ... seems that the main problem was between the chair and the keyboard:) ... Works fine now (knock wood) Thanks for your help ...
    (comp.os.linux.hardware)
  • Re: inb & outb woes...
    ... I was a bit too careless. ... > if I run it as root, it works without any error messages getting ... seems that the main problem was between the chair and the keyboard:) ... Works fine now (knock wood) Thanks for your help ...
    (comp.os.linux.development.system)
  • Re: inb & outb woes...
    ... I was a bit too careless. ... > if I run it as root, it works without any error messages getting ... seems that the main problem was between the chair and the keyboard:) ... Works fine now (knock wood) Thanks for your help ...
    (comp.os.linux.development.apps)
  • Re: ukbd attachment and root mount
    ... sometimes root filesystem is mounted first. ... Another (with custom kernel, zfs root): ... So I stuck at mountroot prompt without a keyboard to enter anything. ... This motherboard has PS/2 emulation for USB devices (often called "USB ...
    (freebsd-stable)
  • Re: X.org keyboard problem
    ... >> I have recently been running into a keyboard problem on my laptop ... >> complaints do not occur if I am logged in as root. ... X Window System Version 6.8.2 ...
    (comp.unix.bsd.freebsd.misc)