writing to an ioport resulting in segfaults...

Posted by Sniperchild on Stack Overflow See other posts from Stack Overflow or by Sniperchild
Published on 2010-04-11T07:42:06Z Indexed on 2010/04/11 7:43 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

I'm writing for an atmel at91sam9260 arm 9 cored single board computer [glomation gesbc9260]

Using request_mem_region(0xFFFFFC00,0x100,"name"); //port range runs from fc00 to fcff

that works fine and shows up in /proc/iomem

then i try to write to the last bit of the port at fc20 with

writel(0x1, 0xFFFFFC20);

and i segfault...specifically "unable to handle kernel paging request at virtual address fffffc20.

I'm of the mind that i'm not allocating the right memory space...

any helpful insight would be great...

© Stack Overflow or respective owner

Related posts about embedded-linux

Related posts about arm