Skip to content
Commit 5291925a authored by Jack Tan's avatar Jack Tan Committed by Ralf Baechle
Browse files

[MIPS] Fixe the definition of PTRS_PER_PGD



When we use > 4KB's page size the original definition is not consistent
with PGDIR_SIZE. For exeample, if we use 16KB page size the PGDIR_SHIFT is
(14-2) + 14 = 26, PGDIR_SIZE is 2^26,so the PTRS_PER_PGD should be:

	2^32/2^26 = 2^6

but the original definition of PTRS_PER_PGD is 4096 (PGDIR_ORDER = 0).

So, this definition needs to be consistent with the PGDIR_SIZE.

And the new definition is consistent with the PGD init in pagetable_init().

Signed-off-by: default avatarDajie Tan <jiankemeng@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 44ce1719
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment