- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can anyone help me with this simple issue? how to compile such simple test: # include <sys/io.h> int main(void) { ioperm(0x340,0x342,1); outb(0x340,0x0); exit(0); } there are no outb() function declared in headers....Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
outb/ioperm, etc. have no meaning in uCLinux, since it's designed specifically for MMUless processors. I believe that the IORD/IOWR macros will work, just fine, for you. They can be found @: # include <io.h> Cheers, - slacker- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello slacker,
I'd like to know if there is a tutorial where I can find the syntax of macros such as IORD or IOWR. If there aren't any, how can you rewrite aj_'s small program? thanks.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello every body,
I'm sure that someone has already cope with these kind of programs... Regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is indeed possible to use outb() and similar in userspace by including <asm/io.h>, or at least it should be.
As far as I remember all the code in asm/io.h is inside# ifdef __KERNEL__, so you have to do some adjustments to this file to be able to access the IO-functions from userspace (refer to f.ex i386).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page