Re: sys_mmap2 on different architectures

From: Ralf Baechle
Date: Thu Feb 23 2006 - 12:31:02 EST


On Wed, Feb 22, 2006 at 07:35:50PM -0800, H. Peter Anvin wrote:

> This is what I've found so far: (64-bit architectures excluded)
>
> arm - N/A (PAGE_SHIFT == 12)
> arm26 - MMAP2_PAGE_SHIFT == 12
> cris - MMAP2_PAGE_SHIFT == PAGE_SHIFT (13)
> frv - MMAP2_PAGE_SHIFT == 12
> h8300 - N/A (PAGE_SHIFT == 12)
> i386 - N/A (PAGE_SHIFT == 12)
> m32r - N/A (PAGE_SHIFT == 12)
> m68k - MMAP2_PAGE_SHIFT == PAGE_SHIFT (variable)
> mips - MMAP2_PAGE_SHIFT == PAGE_SHIFT (variable)

A variable which happens to be fixed to 12 in practice. As explained by
Ben the API is only relevant to 32-bit kernels and afaik PAGE_SHIFT
other than 12 has only been successfully been tested on 64-bit kernels.

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