]> err.no Git - linux-2.6/commit
[MIPS] sys_mmap2 offset argument should always be shifted 12, not PAGE_SHIFT.
authorH. Peter Anvin <hpa@zytor.com>
Sat, 25 Feb 2006 05:20:29 +0000 (21:20 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 21 Mar 2006 13:27:48 +0000 (13:27 +0000)
commit947df17cb1be4c7239280a77263c249fde1379ef
tree1e32d0e81848e59a9796c3034208aa72432583d0
parentde862b488e81172d4c610945efd9f3fc7f4b84a7
[MIPS] sys_mmap2 offset argument should always be shifted 12, not PAGE_SHIFT.

This patch adjusts the offset argument passed into sys_mmap2 to be
always shifted 12, even when the native page size isn't 4K.  This is
what all existing userspace libraries expect.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
arch/mips/kernel/linux32.c
arch/mips/kernel/syscall.c