Hello. On 05/11/2012 08:53 PM, Steven J. Hill wrote:
From: "Steven J. Hill"<sjhill@xxxxxxxx>
This patch refactors 464fd83e841a16f4ea1325b33eb08170ef5cd1f4 and
Please also specify that commit's summary in parens.
correctly calculates the right length while taking into account page table alignment by PMD.
Signed-off-by: Leonid Yegoshin<yegoshin@xxxxxxxx> Signed-off-by: Steven J. Hill<sjhill@xxxxxxxx>
[...]
diff --git a/arch/mips/mm/pgtable-32.c b/arch/mips/mm/pgtable-32.c index adc6911..5d27baf 100644 --- a/arch/mips/mm/pgtable-32.c +++ b/arch/mips/mm/pgtable-32.c
[...]
@@ -51,8 +52,11 @@ void __init pagetable_init(void) /* * Fixed mappings: */ - vaddr = __fix_to_virt(__end_of_fixed_addresses - 1)& PMD_MASK; - fixrange_init(vaddr, vaddr + FIXADDR_SIZE, pgd_base); + vaddr = __fix_to_virt(__end_of_fixed_addresses - 1); + /* Calculate real end before alignment. */ + vend = vaddr + FIXADDR_SIZE; + vaddr = vaddr & PMD_MASK;
vaddr &= PMD_MASK; WBR, Sergei