Messages in this thread | | | From | Edgardo Hames <> | Subject | Re: Error accessing memory between 0xc0000 and 0x100000 | Date | Thu, 27 Mar 2003 13:25:30 -0300 |
| |
El Mar 25 Mar 2003 13:21, Richard B. Johnson escribió:
> On Tue, 25 Mar 2003, Edgardo Hames wrote: > > Hi everybody. I'm trying to write a simple device driver to read and > > write memory at addresses beween 0xc0000 and 0x100000, but when I try to > > load the module I get the following error: > > Check out ioremap(). Although the addresses you show are already > mapped, you need to access them with the "cookie" returned from > ioremap().
I tried ioremap'ing the addresses and now it doesn't oops, but I keep reading 255 no matter what I write to that address. I have no device at that addresses, but what I'm trying to do is reading and writing to that memory area like it was a file.
Thanks, Edgardo -- If you cannot convince them, confuse them. Truman's Law
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |