mmap problems

Khem Raj kraj at mvista.com
Wed Mar 7 19:20:19 UTC 2007


Michel Benoit wrote:
> Hello,
>
> When building uClibc (both latest and 0.9.28.1) for my arm platform
> (at91sam9260), it seems to be set up to use the old mmap1() instead of
> the newer mmap2().
>
> I'm trying to implement a little bit of code to tweak the hw registers
> on my SoC according to
> http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2002-February/007777.html
> but when i run the code with strace I get the following output:
>
> open("/dev/mem", O_RDWR|O_SYNC)         = 4
> old_mmap()                              = -1 EFAULT (Bad address)
>
> Some nice folks on the arm linux kernel list suggested that I need
> to be using the newer mmap2() for this to work.
>   
Hi Michel


The current implementation has bug. Can you try this patch for arm mmap.

Thanks

-Khem


-------------- next part --------------
A non-text attachment was scrubbed...
Name: uclibc-arm-mmap.patch
Type: text/x-patch
Size: 2218 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070307/83d84c0d/attachment-0002.bin 


More information about the uClibc mailing list