[Gllug] Virtual memory error in driver
salsaman at xs4all.nl
salsaman at xs4all.nl
Tue Jul 26 11:37:13 UTC 2011
On Tue, July 26, 2011 11:02, James Courtier-Dutton wrote:
> On 25 July 2011 22:14, <salsaman at xs4all.nl> wrote:
>> Hi all,
>> I am trying to write a driver to read the values of some peripheral. The
>> first step is to set the direction of the pins to read, the code is
>> something like:
>>
>> unit8_t *address = 0x01e26088;
>> memset(address, 0xFF, 1);
>>
>> however when I load the module with this code, I get an error:
>>
>> Unable to handle kernel paging request at virtual address 01e26088
>>
>
> Where are you getting 0x01e26088 from?
It's from the data sheet, the pin direction register for the device.
Salsaman.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list