aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
authorLiu Hua <sdu.liu@huawei.com>2014-04-18 04:43:32 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-04-23 06:09:42 -0400
commita05e54c103b0b8e1dab5d04b411f1d48387c4903 (patch)
treed9960fd5c3517f42f57c4513e28dd51a6353ec27 /arch/arm/mm/mmu.c
parent4221e2e6b3160e4b558df14fa79f025c0e277935 (diff)
ARM: 8031/2: change fixmap mapping region to support 32 CPUs
In 32-bit ARM systems, the fixmap mapping region can support no more than 14 CPUs(total: 896k; one CPU: 64K). And we can configure NR_CPUS up to 32. So there is a mismatch. This patch moves fixmapping region downwards to region 0xffc00000- 0xffe00000. Then the fixmap mapping region can support up to 32 CPUs. Reviewed-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Liu Hua <sdu.liu@huawei.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index b68c6b22e1c8..09c0a16165dc 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -35,6 +35,7 @@
35#include <asm/mach/arch.h> 35#include <asm/mach/arch.h>
36#include <asm/mach/map.h> 36#include <asm/mach/map.h>
37#include <asm/mach/pci.h> 37#include <asm/mach/pci.h>
38#include <asm/fixmap.h>
38 39
39#include "mm.h" 40#include "mm.h"
40#include "tcm.h" 41#include "tcm.h"
@@ -1359,6 +1360,9 @@ static void __init kmap_init(void)
1359#ifdef CONFIG_HIGHMEM 1360#ifdef CONFIG_HIGHMEM
1360 pkmap_page_table = early_pte_alloc(pmd_off_k(PKMAP_BASE), 1361 pkmap_page_table = early_pte_alloc(pmd_off_k(PKMAP_BASE),
1361 PKMAP_BASE, _PAGE_KERNEL_TABLE); 1362 PKMAP_BASE, _PAGE_KERNEL_TABLE);
1363
1364 fixmap_page_table = early_pte_alloc(pmd_off_k(FIXADDR_START),
1365 FIXADDR_START, _PAGE_KERNEL_TABLE);
1362#endif 1366#endif
1363} 1367}
1364 1368