- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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....Lien copié
4 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello every body,
I'm sure that someone has already cope with these kind of programs... Regards- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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).
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable