[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

newbee med adresse problemer





hej jeg er ved at lave et i/o kort til isa slot
men kan ikke få c programmet til at adressere det??
har prøvet med denne manual
http://www.tldp.org/HOWTO/mini/IO-Port-Programming-1.html
men jeg syntes ikke det virker
systemet skriver : segmentasion fault (core dump)
jeg har lavet programmet sådanne her:

#define extern static
#include<asm/io.h>
#include<asm/unistd.h>
#undef extern
char hent;                        //variabler
int main()
{
ioperm(0x280,4,1);         //klargøring af port
hent=inb(280);                //her hentes indholdet af port 280 til hent
printf("%d",hent);            //her skrives indholdet af hent
getchar();
return 0;
}

jeg har også prøvet vor jeg ville skrive til porten og resultat blev det
samme


_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *