Skip to content
Commit 9dbd7b91 authored by Peter Watkins's avatar Peter Watkins Committed by Ralf Baechle
Browse files

[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: default avatarPeter Watkins <treestem@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 663c3d90
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment