Your problem is not DaVinci specific, it's the MMU that gets in the way.

 

For user space programming look at: "/dev/mem", getpagesize( ), mmap( ),
munmap( ).

For kernel space programming look at:   _io_p2v( );       in
"..../include/asm-arch/arch-davinci/io.h", valid for physical 0x01c00000
- 0x01f00000.

 

Arie de Muijnck

 

-----------------------

Furqan:

Can anybody tell me as to how can I access the memory mapped registers
directly? I have a linux kernal image sitting on my board and every time
I try to access the registers directly, it gives me segmentation fault.
I use the below command. 

*(unsigned int *)(0x01c67038)=0x4F4;  

Even though it compiles fine, when I run the executable, it gives me
segmentation fault. Note the above works fine when I run it using JTAG
because there is no Kernal image on the board.
  
--------------------------------------------------------

 
CONFIDENTIALITY NOTICE - This e-mail transmission, and any documents, files or 
previous e-mail messages attached to it may contain information that is 
confidential or legally privileged. If you are not the intended recipient, or a 
person responsible for delivering it to the intended recipient, you are hereby 
notified that you must not read this transmission and that any disclosure, 
copying, printing, distribution or use of any of the information contained in 
or attached to this transmission is STRICTLY PROHIBITED. If you have received 
this transmission in error, please immediately notify Arie Muijnck by telephone 
or [EMAIL PROTECTED] and delete the original transmission and its attachments 
without reading or saving in any manner.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to