MIPS: Two-level pagetables for 64-bit kernels with 64KB pages.
For 64-bit kernels with 64KB pages and two level page tables, there are 42 bits worth of virtual address space This is larger than the 40 bits of virtual address space obtained with the default 4KB Page size and three levels, so there are no draw backs for using two level tables with this configuration. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/761/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
ef6c1fd662
commit
325f8a0a31
@@ -188,11 +188,15 @@ void output_mm_defines(void)
|
||||
DEFINE(_PTE_T_SIZE, sizeof(pte_t));
|
||||
BLANK();
|
||||
DEFINE(_PGD_T_LOG2, PGD_T_LOG2);
|
||||
#ifndef __PAGETABLE_PMD_FOLDED
|
||||
DEFINE(_PMD_T_LOG2, PMD_T_LOG2);
|
||||
#endif
|
||||
DEFINE(_PTE_T_LOG2, PTE_T_LOG2);
|
||||
BLANK();
|
||||
DEFINE(_PGD_ORDER, PGD_ORDER);
|
||||
#ifndef __PAGETABLE_PMD_FOLDED
|
||||
DEFINE(_PMD_ORDER, PMD_ORDER);
|
||||
#endif
|
||||
DEFINE(_PTE_ORDER, PTE_ORDER);
|
||||
BLANK();
|
||||
DEFINE(_PMD_SHIFT, PMD_SHIFT);
|
||||
|
Reference in New Issue
Block a user