Re: Issue in using mmap on ARM target

2010-09-21 Thread vinit dhatrak
On Mon, Sep 20, 2010 at 11:57 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Mon, Sep 20, 2010 at 12:11, naveen yadav yad.nav...@gmail.com wrote: Hi all, I am facing one issue when executing below progmra on ARM target. The same program work well on X86 host machine,

Re: Issue in using mmap on ARM target

2010-09-21 Thread Mulyadi Santosa
Hi On Wed, Sep 22, 2010 at 01:01, vinit dhatrak vinit.dhat...@gmail.com wrote: I guess this issue has something to do with '/dev/mem' being physical memory. The address may have different value when data is set and different data when value is read due to page swapping or copy-on-write. I

Re: Issue in using mmap on ARM target

2010-09-21 Thread vinit dhatrak
On Tue, Sep 21, 2010 at 10:21 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi On Wed, Sep 22, 2010 at 01:01, vinit dhatrak vinit.dhat...@gmail.com wrote: I guess this issue has something to do with '/dev/mem' being physical memory. The address may have different value when

Re: Issue in using mmap on ARM target

2010-09-21 Thread naveen yadav
Hi All ,, I will add some more info as i debug further. If i give offset in range 0- 1023 then it work for me. # # ./arm.out 1023 w 3 /dev/mem opened. Memory mapped at address 0x40022000. Value at address 0x3FF (0x400223ff): 0xE1 Written 0x3;

Issue in using mmap on ARM target

2010-09-20 Thread naveen yadav
Hi all, I am facing one issue when executing below progmra on ARM target. The same program work well on X86 host machine, When execute on Host(x86). the result are as expected. [r...@localhost naveen]# ./a.out   b 2 /dev/mem opened. Memory mapped at address 0xb7f0. Value at address 0x0

Re: Issue in using mmap on ARM target

2010-09-20 Thread Mulyadi Santosa
Hi... On Mon, Sep 20, 2010 at 12:11, naveen yadav yad.nav...@gmail.com wrote: Hi all, I am facing one issue when executing below progmra on ARM target. The same program work well on X86 host machine, some message deleted But when execute on Target(ARM): # ./a.out 0 w 20 /dev/mem