Hi

I want to read and write from a physical memory, the method I used is
ex: if memory address is 0x58000000
int a = 10;
int b;
* (volatile int * ) 0x58000000 = a;
b = *( volatile int * ) 0x58000000;
printf( " %d ", b );

in this way I am getting segmentation fault. What is right way to do this operation.

Thanks