summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/pgtable-64.c
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2011-01-06 08:31:30 +0100
committerRalf Baechle <ralf@linux-mips.org>2011-07-25 18:26:54 +0200
commit464fd83e841a16f4ea1325b33eb08170ef5cd1f4 (patch)
tree2e182c5da3bf09701e048ec7edef90665feb9f44 /arch/mips/mm/pgtable-64.c
parentMIPS: Install handlers for software IRQs (diff)
downloadlinux-464fd83e841a16f4ea1325b33eb08170ef5cd1f4.tar.xz
linux-464fd83e841a16f4ea1325b33eb08170ef5cd1f4.zip
MIPS: Limit fixrange_init() to the FIXMAP region
fixrange_init() allocates page tables for all addresses higher than FIXADDR_TOP. On processors that override the default FIXADDR_TOP address of 0xfffe_0000, this can consume up to 4 pages (1 page per 4MB) for pgd's that are never used. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1980/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/pgtable-64.c')
-rw-r--r--arch/mips/mm/pgtable-64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/pgtable-64.c b/arch/mips/mm/pgtable-64.c
index 78eaa4f0b0ec..cda4e300eb0a 100644
--- a/arch/mips/mm/pgtable-64.c
+++ b/arch/mips/mm/pgtable-64.c
@@ -76,5 +76,5 @@ void __init pagetable_init(void)
* Fixed mappings:
*/
vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK;
- fixrange_init(vaddr, 0, pgd_base);
+ fixrange_init(vaddr, vaddr + FIXADDR_SIZE, pgd_base);
}