diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-04-11 14:14:17 -0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2016-07-23 23:33:58 -0400 |
commit | d39af90265feb40ec198c4ca8268724645b4b50e (patch) | |
tree | 32c3aed4a66a243251ca0a9e195c4ba8e6dddeeb /arch/xtensa/mm/init.c | |
parent | f1883aa7d63e3be92ad18da7a1bfc6c9b15c4f9a (diff) |
xtensa: add alternative kernel memory layouts
MMUv3 is able to support low memory bigger than 128MB.
Implement 256MB and 512MB KSEG layouts:
- add Kconfig selector for KSEG layout;
- add KSEG base address, size and alignment definitions to
arch/xtensa/include/asm/kmem_layout.h;
- use new definitions in TLB initialization;
- add build time memory map consistency checks.
See Documentation/xtensa/mmu.txt for the details of new memory layouts.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/mm/init.c')
-rw-r--r-- | arch/xtensa/mm/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index 4d7142beac72..302fa72d0d5a 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -266,8 +266,7 @@ void __init bootmem_init(void) | |||
266 | if (min_low_pfn > max_pfn) | 266 | if (min_low_pfn > max_pfn) |
267 | panic("No memory found!\n"); | 267 | panic("No memory found!\n"); |
268 | 268 | ||
269 | max_low_pfn = max_pfn < MAX_MEM_PFN >> PAGE_SHIFT ? | 269 | max_low_pfn = min(max_pfn, MAX_LOW_PFN); |
270 | max_pfn : MAX_MEM_PFN >> PAGE_SHIFT; | ||
271 | 270 | ||
272 | /* Find an area to use for the bootmem bitmap. */ | 271 | /* Find an area to use for the bootmem bitmap. */ |
273 | 272 | ||