i am using mmap and memcpy but i am getting bus error with memcpy.
a = (unsigned int*) mmap(NULL, size, PROT_READ, MAP_PRIVATE, fp, 0);
memcpy(&x,(unsigned int *)a,sizeof(unsigned int));
if i do this
x=a; no bus error but when i do above, i got bus error...
thanks for any help.