diff options
author | Jack Tan <jack.tan@windriver.com> | 2008-09-23 22:52:34 +0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-09-24 00:26:55 +0200 |
commit | 5291925a9a65ea334f6e887d0f01dd119b8e2b2e (patch) | |
tree | 7cacbbf17ae6b22d9be55c4b862fa064082bf531 /include/asm-xtensa | |
parent | 44ce17192a01218b242e032237e1d2e52ef50429 (diff) | |
download | op-kernel-dev-5291925a9a65ea334f6e887d0f01dd119b8e2b2e.zip op-kernel-dev-5291925a9a65ea334f6e887d0f01dd119b8e2b2e.tar.gz |
[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: Dajie Tan <jiankemeng@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-xtensa')
0 files changed, 0 insertions, 0 deletions