diff options
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r-- | arch/m68k/mm/init.c | 4 | ||||
-rw-r--r-- | arch/m68k/mm/motorola.c | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index 81bb08ceec18..0007b2adf3a3 100644 --- a/arch/m68k/mm/init.c +++ b/arch/m68k/mm/init.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #ifdef CONFIG_ATARI | 28 | #ifdef CONFIG_ATARI |
29 | #include <asm/atari_stram.h> | 29 | #include <asm/atari_stram.h> |
30 | #endif | 30 | #endif |
31 | #include <asm/sections.h> | ||
31 | #include <asm/tlb.h> | 32 | #include <asm/tlb.h> |
32 | 33 | ||
33 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 34 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
@@ -73,9 +74,6 @@ extern void init_pointer_table(unsigned long ptable); | |||
73 | 74 | ||
74 | /* References to section boundaries */ | 75 | /* References to section boundaries */ |
75 | 76 | ||
76 | extern char _text[], _etext[]; | ||
77 | extern char __init_begin[], __init_end[]; | ||
78 | |||
79 | extern pmd_t *zero_pgtable; | 77 | extern pmd_t *zero_pgtable; |
80 | 78 | ||
81 | void __init mem_init(void) | 79 | void __init mem_init(void) |
diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index c5dbb9bdb322..4665fc84b7dc 100644 --- a/arch/m68k/mm/motorola.c +++ b/arch/m68k/mm/motorola.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #ifdef CONFIG_ATARI | 30 | #ifdef CONFIG_ATARI |
31 | #include <asm/atari_stram.h> | 31 | #include <asm/atari_stram.h> |
32 | #endif | 32 | #endif |
33 | #include <asm/sections.h> | ||
33 | 34 | ||
34 | #undef DEBUG | 35 | #undef DEBUG |
35 | 36 | ||
@@ -301,14 +302,12 @@ void __init paging_init(void) | |||
301 | } | 302 | } |
302 | } | 303 | } |
303 | 304 | ||
304 | extern char __init_begin, __init_end; | ||
305 | |||
306 | void free_initmem(void) | 305 | void free_initmem(void) |
307 | { | 306 | { |
308 | unsigned long addr; | 307 | unsigned long addr; |
309 | 308 | ||
310 | addr = (unsigned long)&__init_begin; | 309 | addr = (unsigned long)__init_begin; |
311 | for (; addr < (unsigned long)&__init_end; addr += PAGE_SIZE) { | 310 | for (; addr < (unsigned long)__init_end; addr += PAGE_SIZE) { |
312 | virt_to_page(addr)->flags &= ~(1 << PG_reserved); | 311 | virt_to_page(addr)->flags &= ~(1 << PG_reserved); |
313 | init_page_count(virt_to_page(addr)); | 312 | init_page_count(virt_to_page(addr)); |
314 | free_page(addr); | 313 | free_page(addr); |