]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[MIPS] Fix USER_PTRS_PER_PGD for 64K page size.
authorPeter Watkins <treestem@gmail.com>
Wed, 23 Aug 2006 15:15:49 +0000 (11:15 -0400)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:37:52 +0000 (13:37 +0100)
commit9dbd7b9142e95867ee8a56da5d45c72884c107d3
treea21e246155a5d4e779f161ea7595ada9b1f43a51
parent663c3d9009c1a41194b8390abdcea61e3ade1c8f
[MIPS] Fix USER_PTRS_PER_PGD for 64K page size.

The code in pgtable-64.h assumes TASK_SIZE is always bigger than a first
level PGDIR_SIZE. This is not the case for 64K pages, where task size is
40 bits (1TB) and a pgd entry can map 42 bits. This leads to
USER_PTRS_PER_PGD being zero for 64K pages.

Signed-off-by: Peter Watkins <treestem@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/pgtable-64.h