diff options
author | Liu Hua <sdu.liu@huawei.com> | 2014-04-18 04:43:32 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-23 06:09:42 -0400 |
commit | a05e54c103b0b8e1dab5d04b411f1d48387c4903 (patch) | |
tree | d9960fd5c3517f42f57c4513e28dd51a6353ec27 /arch/arm/include/asm | |
parent | 4221e2e6b3160e4b558df14fa79f025c0e277935 (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/include/asm')
-rw-r--r-- | arch/arm/include/asm/fixmap.h | 16 | ||||
-rw-r--r-- | arch/arm/include/asm/highmem.h | 1 |
2 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/include/asm/fixmap.h b/arch/arm/include/asm/fixmap.h index be55ebc08ed4..74124b0d0d79 100644 --- a/arch/arm/include/asm/fixmap.h +++ b/arch/arm/include/asm/fixmap.h | |||
@@ -1,20 +1,8 @@ | |||
1 | #ifndef _ASM_FIXMAP_H | 1 | #ifndef _ASM_FIXMAP_H |
2 | #define _ASM_FIXMAP_H | 2 | #define _ASM_FIXMAP_H |
3 | 3 | ||
4 | /* | 4 | #define FIXADDR_START 0xffc00000UL |
5 | * Nothing too fancy for now. | 5 | #define FIXADDR_TOP 0xffe00000UL |
6 | * | ||
7 | * On ARM we already have well known fixed virtual addresses imposed by | ||
8 | * the architecture such as the vector page which is located at 0xffff0000, | ||
9 | * therefore a second level page table is already allocated covering | ||
10 | * 0xfff00000 upwards. | ||
11 | * | ||
12 | * The cache flushing code in proc-xscale.S uses the virtual area between | ||
13 | * 0xfffe0000 and 0xfffeffff. | ||
14 | */ | ||
15 | |||
16 | #define FIXADDR_START 0xfff00000UL | ||
17 | #define FIXADDR_TOP 0xfffe0000UL | ||
18 | #define FIXADDR_SIZE (FIXADDR_TOP - FIXADDR_START) | 6 | #define FIXADDR_SIZE (FIXADDR_TOP - FIXADDR_START) |
19 | 7 | ||
20 | #define FIX_KMAP_NR_PTES (FIXADDR_SIZE >> PAGE_SHIFT) | 8 | #define FIX_KMAP_NR_PTES (FIXADDR_SIZE >> PAGE_SHIFT) |
diff --git a/arch/arm/include/asm/highmem.h b/arch/arm/include/asm/highmem.h index 91b99abe7a95..535579511ed0 100644 --- a/arch/arm/include/asm/highmem.h +++ b/arch/arm/include/asm/highmem.h | |||
@@ -18,6 +18,7 @@ | |||
18 | } while (0) | 18 | } while (0) |
19 | 19 | ||
20 | extern pte_t *pkmap_page_table; | 20 | extern pte_t *pkmap_page_table; |
21 | extern pte_t *fixmap_page_table; | ||
21 | 22 | ||
22 | extern void *kmap_high(struct page *page); | 23 | extern void *kmap_high(struct page *page); |
23 | extern void kunmap_high(struct page *page); | 24 | extern void kunmap_high(struct page *page); |