Problem with direct I/O in Linux

For issues with communication ports, protocols, etc.
Post Reply
alotti
Posts: 2
Joined: Aug 29, 2008 8:35

Problem with direct I/O in Linux

Post by alotti »

Hi,
I'trying to read a value form a direct I/O with this instruction:
lsb% = INP(address)
but if address is higher than 1023 the result is a SEGMENTATION FAULT (with address lower everything work fine).
Can anyone help me?

Andrea
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Problem with direct I/O in Linux

Post by TJF »

I guess you need privilegues to access these adresses.
Post Reply