lkml.org 
[lkml]   [2006]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sys_mmap2 on different architectures
Benjamin LaHaise wrote:
>
> The sys_mmap2() ABI is that the page shift is always fixed to whatever
> page size is reasonable for the architecture, typically 2^12. The syscall
> should never be exposed as mmap2(), only as the large file size version
> of mmap() (aka mmap64()). The other consideration is that it should not
> be implemented in 64 bit ABIs, as those machines should be using a 64 bit
> native mmap(). Does that clear things up a bit? Cheers,
>

That was the theory, but that doesn't seem to be actually what's
implemented. At least on MIPS and PPC, where page size is variable (to
the best of my knowledge), the shift seems to be whatever PAGE_SIZE the
kernel was compiled with. On the other hand, that's apparently what's
implemented on SPARC (with the fixed offset of 12.)

-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 01:25    [W:0.108 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site