> You may want to take a look at this page, > > http://www.scs.ch/~frey/linux/memorymap.html > > This also contains a sample source code, here, > http://www.scs.ch/~frey/linux/mmap.example.tar > I tried this code on ARM architecture on a swapless board which works > fine. > > If you could share exact code, that would be easy to debug the problem > you are facing. Oh, solved!! \o/ Don't know why, but it didn't take correctly PROT_NONE flag on (userspace) mmap. with: mmapped_ptr = mmap(NULL,SIZE,PROT_READ, MAP_SHARED ,fd,0); ( or PROT_WRITE, or both) it works. thanks. -- -gaspa- ----------------------------------------------- -------- https://launchpad.net/~gaspa --------- ------ HomePage: iogaspa.altervista.org ------- -Il lunedi'dell'arrampicatore: www.lunedi.org - -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ