aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r--arch/sh/mm/init.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index dffa6c749489..58012b6bbe76 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -21,11 +21,12 @@
21#include <asm/cacheflush.h> 21#include <asm/cacheflush.h>
22#include <asm/sections.h> 22#include <asm/sections.h>
23#include <asm/cache.h> 23#include <asm/cache.h>
24#include <asm/sizes.h>
24 25
25DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); 26DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
26pgd_t swapper_pg_dir[PTRS_PER_PGD]; 27pgd_t swapper_pg_dir[PTRS_PER_PGD];
27 28
28#ifdef CONFIG_SUPERH32 29#ifdef CONFIG_UNCACHED_MAPPING
29/* 30/*
30 * This is the offset of the uncached section from its cached alias. 31 * This is the offset of the uncached section from its cached alias.
31 * 32 *
@@ -36,8 +37,8 @@ pgd_t swapper_pg_dir[PTRS_PER_PGD];
36 * Default value only valid in 29 bit mode, in 32bit mode this will be 37 * Default value only valid in 29 bit mode, in 32bit mode this will be
37 * updated by the early PMB initialization code. 38 * updated by the early PMB initialization code.
38 */ 39 */
39unsigned long cached_to_uncached = P2SEG - P1SEG; 40unsigned long cached_to_uncached = 0x20000000;
40unsigned long uncached_size = 0x20000000; 41unsigned long uncached_size = SZ_512M;
41#endif 42#endif
42 43
43#ifdef CONFIG_MMU 44#ifdef CONFIG_MMU
@@ -281,7 +282,9 @@ void __init mem_init(void)
281#endif 282#endif
282 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n" 283 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n"
283 " lowmem : 0x%08lx - 0x%08lx (%4ld MB) (cached)\n" 284 " lowmem : 0x%08lx - 0x%08lx (%4ld MB) (cached)\n"
285#ifdef CONFIG_UNCACHED_MAPPING
284 " : 0x%08lx - 0x%08lx (%4ld MB) (uncached)\n" 286 " : 0x%08lx - 0x%08lx (%4ld MB) (uncached)\n"
287#endif
285 " .init : 0x%08lx - 0x%08lx (%4ld kB)\n" 288 " .init : 0x%08lx - 0x%08lx (%4ld kB)\n"
286 " .data : 0x%08lx - 0x%08lx (%4ld kB)\n" 289 " .data : 0x%08lx - 0x%08lx (%4ld kB)\n"
287 " .text : 0x%08lx - 0x%08lx (%4ld kB)\n", 290 " .text : 0x%08lx - 0x%08lx (%4ld kB)\n",
@@ -299,9 +302,11 @@ void __init mem_init(void)
299 (unsigned long)memory_start, (unsigned long)high_memory, 302 (unsigned long)memory_start, (unsigned long)high_memory,
300 ((unsigned long)high_memory - (unsigned long)memory_start) >> 20, 303 ((unsigned long)high_memory - (unsigned long)memory_start) >> 20,
301 304
305#ifdef CONFIG_UNCACHED_MAPPING
302 (unsigned long)memory_start + cached_to_uncached, 306 (unsigned long)memory_start + cached_to_uncached,
303 (unsigned long)memory_start + cached_to_uncached + uncached_size, 307 (unsigned long)memory_start + cached_to_uncached + uncached_size,
304 uncached_size >> 20, 308 uncached_size >> 20,
309#endif
305 310
306 (unsigned long)&__init_begin, (unsigned long)&__init_end, 311 (unsigned long)&__init_begin, (unsigned long)&__init_end,
307 ((unsigned long)&__init_end - 312 ((unsigned long)&__init_end -