提交 07cbb41b 编写于 作者: P Paul Mundt 提交者: Paul Mundt

sh: Use asm/sections.h for linker section symbols.

Kill off a bunch of externs, and use sections.h instead..
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 2de212eb
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/mmu_context.h> #include <asm/mmu_context.h>
#include <asm/tlb.h> #include <asm/tlb.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/sections.h>
#include <asm/cache.h> #include <asm/cache.h>
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); DEFINE_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,11 +133,6 @@ void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
} }
#endif /* CONFIG_MMU */ #endif /* CONFIG_MMU */
/* References to section boundaries */
extern char _text, _etext, _edata, __bss_start, _end;
extern char __init_begin, __init_end;
/* /*
* paging_init() sets up the page tables * paging_init() sets up the page tables
*/ */
...@@ -251,8 +247,9 @@ void free_initmem(void) ...@@ -251,8 +247,9 @@ void free_initmem(void)
free_page(addr); free_page(addr);
totalram_pages++; totalram_pages++;
} }
printk("Freeing unused kernel memory: %dk freed\n", printk("Freeing unused kernel memory: %ldk freed\n",
(&__init_end - &__init_begin) >> 10); ((unsigned long)&__init_end -
(unsigned long)&__init_begin) >> 10);
} }
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册