Read in /dev/port with Segmentation Fault

scarayol at assystembrime.com scarayol at assystembrime.com
Thu Jun 9 17:30:43 EST 2005


Hi all,

I want to access to IO ports on a MPC885. The iopl() is not implemented, in
my distribution, to use inw() outw().
So I use /dev/port. It works for open("/dev/port",..) and lseek() but when
i do a read()  i have a segmentation fault. I gave all the right to
/dev/port
Does anybody have an idea ?
Thanks a lot.

Sophie CARAYOL






More information about the Linuxppc-embedded mailing list