[uClibc]mipsel mmap
Erik Andersen
andersen at codepoet.org
Fri Jun 13 20:49:50 UTC 2003
On Fri Jun 13, 2003 at 04:26:43PM +0100, Stuart Hughes wrote:
> I'm trying to use mmap to map an area of Flash with an offset of
> 1c000000 into my user space.
[---------snip----------]
> Whereas on uClibc I see:
>
>
> open("/dev/mem", O_RDWR) = 7
> mmap(NULL, 16777216, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0x1c000000) =
> 0x2abc00
> write(2, "41", 241) = 2
>
> Any idea's what's wrong.
>
>
> Regards, Stuart
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
This was fixed shortly after uClibc 0.9.19 was released.
$ cvs log ./libc/sysdeps/linux/mips/_mmap.c | grep "revision 1.3" -A4
revision 1.3
date: 2003/03/06 16:56:02; author: andersen; state: Exp; lines: +5 -0
For now, leave mmap on mips using mmap1, since mmap2 seems
to have 'issues' (i.e. it doesn't work 100% properly).
-Erik
So you will need to update to the current CVS verison for mips to
behave itself properly. BTW, I am ramping up for the uClibc
0.9.20 release in the very near future....
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list