diff options
-rw-r--r-- | arch/sh/mm/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index d5e160da64b2..5d19c8c7ab53 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -170,6 +170,7 @@ void __init paging_init(void) | |||
170 | } | 170 | } |
171 | 171 | ||
172 | static struct kcore_list kcore_mem, kcore_vmalloc; | 172 | static struct kcore_list kcore_mem, kcore_vmalloc; |
173 | int after_bootmem = 0; | ||
173 | 174 | ||
174 | void __init mem_init(void) | 175 | void __init mem_init(void) |
175 | { | 176 | { |
@@ -214,6 +215,8 @@ void __init mem_init(void) | |||
214 | clear_page = clear_page_nommu; | 215 | clear_page = clear_page_nommu; |
215 | #endif | 216 | #endif |
216 | 217 | ||
218 | after_bootmem = 1; | ||
219 | |||
217 | codesize = (unsigned long) &_etext - (unsigned long) &_text; | 220 | codesize = (unsigned long) &_etext - (unsigned long) &_text; |
218 | datasize = (unsigned long) &_edata - (unsigned long) &_etext; | 221 | datasize = (unsigned long) &_edata - (unsigned long) &_etext; |
219 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; | 222 | initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; |