aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/mm/init.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index 2032b39c229a..753e11d5e620 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -18,6 +18,7 @@
18#include <asm/mmu_context.h> 18#include <asm/mmu_context.h>
19#include <asm/tlb.h> 19#include <asm/tlb.h>
20#include <asm/cacheflush.h> 20#include <asm/cacheflush.h>
21#include <asm/sections.h>
21#include <asm/cache.h> 22#include <asm/cache.h>
22 23
23DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); 24DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
@@ -132,11 +133,6 @@ void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
132} 133}
133#endif /* CONFIG_MMU */ 134#endif /* CONFIG_MMU */
134 135
135/* References to section boundaries */
136
137extern char _text, _etext, _edata, __bss_start, _end;
138extern char __init_begin, __init_end;
139
140/* 136/*
141 * paging_init() sets up the page tables 137 * paging_init() sets up the page tables
142 */ 138 */
@@ -251,8 +247,9 @@ void free_initmem(void)
251 free_page(addr); 247 free_page(addr);
252 totalram_pages++; 248 totalram_pages++;
253 } 249 }
254 printk("Freeing unused kernel memory: %dk freed\n", 250 printk("Freeing unused kernel memory: %ldk freed\n",
255 (&__init_end - &__init_begin) >> 10); 251 ((unsigned long)&__init_end -
252 (unsigned long)&__init_begin) >> 10);
256} 253}
257 254
258#ifdef CONFIG_BLK_DEV_INITRD 255#ifdef CONFIG_BLK_DEV_INITRD