Re: inb & outb woes...
jahurt_at_hotmail.com
Date: 07/12/03
- Next message: pojen: "Re: uCLinux on Samsung S3C4510B (ARM7TDMI) based wireless router"
- Previous message: Oliver Fels: "Re: Linux+PDA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: pojen: "Re: uCLinux on Samsung S3C4510B (ARM7TDMI) based wireless router"
- Previous message: Oliver Fels: "Re: Linux+PDA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|