lkml.org 
[lkml]   [2006]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectThe sys_mmap2 syscall on m68k, cris, and mips
Hello, sorry for the wide distribution;

I am trying to track down the story on the sys_mmap2 system call.
Currently, to the best of my knowledge, glibc, µClibc, and klibc
(haven't looked at newlib recently) all assume that sys_mmap2() is the
way to map large files on 32-bit architectures, and that the offset
argument is always shifted over by 12.

As indicated by this post, this is the case on most architectures:

http://marc.theaimsgroup.com/?l=linux-kernel&m=114066586932670&w=2

The odd ones out are m68k, cris, and MIPS. Ralf Baechle has indicated
that non-4K-pages are currently experimental on MIPS, and that he would
be open to changing MIPS to fit the rest of the pattern. That leaves
m68k and cris.

Thus, I would like to hear your opinion. One opinion is to define that
the shift is fixed, but architecture-specific, and introduce an
MMAP2_PAGE_SHIFT #define that libraries can pick up. (That would
require m68k to change at least on the Sun3 platform, though. I don't
think there is a huge installed base there, though.)

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-23 18:25    [W:0.020 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site