(R)ex: [PLUTO-help] Programma C

Stefano stefanobettinelli2 a virgilio.it
Mar 17 Feb 2004 00:08:40 CET


Grazie per avermi risposto cmq in base a quello che ho trovato scritto qui di 
seguito in inglese ho intuito che dovevo usare la funzione ioperm(2).
Io l'ho fatto nel main del mio programma ma il problema rimane "Segmentation 
fault".Non capisco forse devo impostare l'uso di outb in un altra maniera...
Ciao grazie alla prossima... 
=========================================================
> DESCRIPTION
>
>  This family of functions is used to do low level port input and output.
> They are primarily designed for internal kernel use, but can be used from
> user space.
>
>  You compile with -O or -O2 or similar. The functions are defined as inline
> macros, and will not be substituted in without optimization enabled,
> causing unresolved references at link time.
>
>  You use ioperm(2) or alternatively iopl(2) to tell the kernel to allow the
> user space application to access the I/O ports in question. Failure to do
> this will cause the application to receive a segmentation fault.
> =========================================================
>
> Con LINUX hai anche a disposizione diversi debuggers per la lettura della
> 'scatola nera' [core] che viene generata eventualmente..
>
> Userei 'ddd' oppure 'gdb' per vedere dove sbagli..
>
> Non e' un problema irrisolvibile, e se stai preparando un laboratorio,
> sono sicuro che il tuo docente ti spiegera' l'errore nella prossima
> lezione. [A meno che tu non l'abbia gia' saltata.. ;o) ]



More information about the pluto-help mailing list